/* styles.css - simple, modern */
:root {
  --accent: #0b76ef;
  --muted: #fff;
  --maxw: 1100px;
  font-family: Inter, system-ui, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #222;
  background: #f7f9fb;
  line-height: 1.5;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
}
.site-header {
  background: #333;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}
.branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  height: 40px;
}
.vs {
  font-weight: 700;
  color: var(--muted);
  margin: 0 6px;
}
.main-nav a {
  margin-left: 12px;
  color: var(--muted);
  text-decoration: none;
}
.hero {
  position: relative;
  height: 100vh;
  background: url("/assets/images/hero.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
}

/* Dark gradient overlay */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(30, 30, 60, 0.7)
  );
  z-index: 1;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeIn 1.5s ease-out forwards;
}

.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-content h1:hover {
  text-shadow: 0 0 30px rgba(0, 150, 255, 0.7);
  transform: scale(1.03);
}

.hero-content h2 {
  font-weight: 400;
  font-size: 1.5rem;
  color: #d0d0d0;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #007bff, #00c6ff);
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.hero-btn:hover {
  background: linear-gradient(45deg, #00c6ff, #007bff);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
  transform: translateY(-3px);
}

/* Floating particles */
.particles span {
  position: absolute;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float 10s infinite ease-in;
}
.particles span:nth-child(1) {
  left: 10%;
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}
.particles span:nth-child(2) {
  left: 30%;
  width: 12px;
  height: 12px;
  animation-delay: 2s;
}
.particles span:nth-child(3) {
  left: 50%;
  width: 6px;
  height: 6px;
  animation-delay: 4s;
}
.particles span:nth-child(4) {
  left: 70%;
  width: 10px;
  height: 10px;
  animation-delay: 6s;
}
.particles span:nth-child(5) {
  left: 90%;
  width: 14px;
  height: 14px;
  animation-delay: 8s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content h2 {
    font-size: 1.2rem;
  }
  .hero-btn {
    padding: 10px 20px;
  }
}
/* --- Layout --- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 80px 10%;
  background: #f8faff;
  position: relative;
  z-index: 1;
}

/* --- Card --- */
.course-card {
  background: linear-gradient(145deg, #ffffff, #f1f5ff);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.08),
    rgba(0, 200, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15);
}

/* --- Text --- */
.course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a2a5a;
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.95rem;
  color: #5b5b7a;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* --- Button --- */
.course-card .btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.95rem;
  color: white;
  background: linear-gradient(45deg, #007bff, #00c6ff);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card .btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.6s ease;
  opacity: 0;
}

.course-card .btn:hover::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

.course-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
}

/* --- Fade Up Animation --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card[data-aos="fade-up"] {
  animation: fadeUp 0.8s ease both;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .courses-grid {
    padding: 60px 5%;
  }
  .course-card {
    padding: 1.5rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}
.btn.danger {
  background: #e74c3c;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
  z-index: 9;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.form-row {
  margin: 0 0 10px;
}
.form-row label {
  display: block;
  font-size: 0.95rem;
  color: #333;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="date"],
.form-row select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-top: 6px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.admin-table thead {
  background: #f1f5f9;
}
.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.site-footer {
  padding: 1rem 0;
  text-align: center;
}
@media (max-width: 600px) {
  .header-inner {
    padding: 0.6rem;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}
