* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #1e293b;
  line-height: 1.6;
}

nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1d4ed8;
}

.links a {
  margin-left: 20px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
}

.links a:hover {
  color: #1d4ed8;
}

section {
  padding: 70px 40px;
}

.light {
  background: #f0f6ff;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  background: linear-gradient(#eff6ff, #fff);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 48px;
  color: #1e40af;
  margin-bottom: 20px;
}

.buttons .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  margin-right: 10px;
  text-decoration: none;
  font-weight: bold;
}

.primary {
  background: #1d4ed8;
  color: #fff;
}

.outline {
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
}

.stats {
  display: flex;
  gap: 20px;
}

.stat {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #1e40af;
  margin-bottom: 30px;
}

.center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card, .info {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.academy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.levels div {
  background: #f8fafc;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
}

.form {
  background: #f0f6ff;
  padding: 30px;
  border-radius: 20px;
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
}

.form button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

th {
  background: #dbeafe;
  color: #1e40af;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cert {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

footer {
  background: #1e40af;
  color: #fff;
  text-align: center;
  padding: 20px;
}

button, .btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card, .info, .cert {
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover, .info:hover, .cert:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

th {
  background: #1D4ED8;
  color: #fff;
  font-weight: 600;
}

td button {
  padding: 6px 10px;
  margin: 2px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
}

td button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form input, .form select, .form textarea {
  border: 1px solid #cbd5f5;
  padding: 12px;
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form input:focus, .form select:focus, .form textarea:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 8px rgba(29,78,216,0.3);
  outline: none;
}

.form button {
  background: #1D4ED8;
  color: #fff;
  border-radius: 12px;
  font-weight: bold;
  padding: 12px;
}

.form button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.hero {
  background: linear-gradient(to bottom, #EFF6FF, #fff);
  padding: 80px 40px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.05);
}

.hero h1 {
  font-size: 3rem;
  color: #1D4ED8;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  margin-right: 10px;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.cert {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.cert button {
  margin-top: 15px;
  background: #1D4ED8;
  color: #fff;
  border-radius: 10px;
  padding: 8px 15px;
}

.cert button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: #1D4ED8;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-weight: 600;
  font-size: 14px;
}

.login-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #fff;
  padding: 40px 35px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.login-card h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #1D4ED8;
}

.login-card .subtitle {
  margin: 8px 0 25px;
  color: #555;
  font-size: 0.95rem;
}

.login-form select,
.login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 0.95rem;
  transition: 0.3s;
}

.login-form select:focus,
.login-form input:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 8px rgba(29,78,216,0.3);
  outline: none;
}

.login-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #1D4ED8;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.login-form button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.error {
  margin-top: 10px;
  color: #dc2626;
  font-size: 0.9rem;
}

.hint {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #777;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-logout {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

nav .btn-logout {
  background: #fff;
  color: #1D4ED8;
  border: 2px solid #1D4ED8;
}

nav .btn-logout:hover {
  background: #1D4ED8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav .btn-logout:active {
  transform: scale(0.95);
}
/* ... Keep existing styles and append these ... */

/* Mobile Responsiveness */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 10px;
  }
  .links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .links a {
    margin-left: 0;
    font-size: 14px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .academy {
    grid-template-columns: 1fr; /* Stack Academy info and Form */
  }
  .stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.auth-toggle span {
  color: #1D4ED8;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}
