/* -----------------------------
   Global Styles
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background: #fdfdfd;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- base ---------- */
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1200;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b00;
  white-space: nowrap;
}

/* nav layout */
nav {
  display: flex;
  align-items: center;
}

/* Panel we toggle on mobile */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Links list */
.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links li { }
.nav-links a {
  color: #333;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color .18s;
}

.nav-links a:hover,
.nav-links a.active { color: #ff6b00; }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff6b00;
  border-radius: 2px;
}

/* Auth buttons (desktop) */
.auth-buttons {
  display: flex;
  gap: 0.6rem;
  margin-left: 1rem;
  align-items: center;
}

.btn-signin {
  border: 1px solid #ff6b00;
  background: #fff;
  color: #ff6b00;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn-signup {
  background: #ff7f2a;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Burger (hidden on desktop) */
.burger {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* Burger active animation */
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Prevent body scroll when mobile menu open */
.no-scroll { overflow: hidden; }

/* ---------- Responsive: tablet & mobile ---------- */
@media (max-width: 992px) {
  /* change nav-panel into a fixed sliding panel */
  .nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.2rem 1.2rem;
    gap: 1rem;
    box-shadow: -8px 0 24px rgba(18, 18, 18, 0.08);
    transition: right 0.28s ease;
    z-index: 1500;
  }

  .nav-panel.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 8px;
    border-radius: 6px;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    margin-left: 0;
  }

  .auth-buttons a {
    width: 100%;
    text-align: center;
  }

  /* show burger */
  .burger { display: block; }
}

/* optional small screen tweaks */
@media (max-width: 420px) {
  header { padding: 0.8rem 4%; }
  .logo { font-size: 1.25rem; }
  .nav-panel { width: 86vw; }
}


/* -----------------------------
   Hero Section
------------------------------ */
.hero {
  background: linear-gradient(to right, #ff6b00, #ff9a3d);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-content .btn-signup {
  background: #fff;
  color: #ff6b00;
  font-size: 1rem;
  font-weight: 600;
}

/* -----------------------------
   Services Section
------------------------------ */
.services {
  text-align: center;
  padding: 4rem 2rem;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: #ff6b00;
  margin-bottom: 0.5rem;
}

/* -----------------------------
   Courses Section
------------------------------ */
.courses {
  background: #fff7f0;
  padding: 4rem 2rem;
  text-align: center;
}

.courses h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.course-card:hover {
  transform: scale(1.03);
}

/* -----------------------------
   Why Choose Us Section
------------------------------ */
.why-choose-us {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-choose-us ul {
  display: inline-block;
  text-align: left;
}

.why-choose-us li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* -----------------------------
   Footer
------------------------------ */
footer {
  background: #222;
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: #ff6b00;
  margin-bottom: 1rem;
}

footer a {
  display: block;
  color: #ccc;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

footer .social-icons a {
  display: inline-block;
  margin: 0 8px;
  color: #fff;
  font-size: 1.3rem;
}

footer p {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #aaa;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .auth-buttons {
    display: none;
  }
}
/* -----------------------------
   Auth Pages (Signup/Signin)
------------------------------ */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #fff7f0;
  padding: 2rem;
}

.auth-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 1.5rem;
  color: #ff6b00;
}

.auth-form .form-group {
  text-align: left;
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

.auth-form input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 1rem;
  transition: border 0.3s;
}

.auth-form input:focus {
  border-color: #ff6b00;
}

.btn-auth {
  background: #ff6b00;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-auth:hover {
  background: #e65c00;
}

.auth-switch {
  margin-top: 1.2rem;
  color: #555;
}

.auth-switch a {
  color: #ff6b00;
  font-weight: 600;
}
/* STYLES FOR THE FOOTER*/
/* Footer styling */
.site-footer {
  background-color: #1a1a1a;
  color: #f1f1f1;
  padding: 40px 0;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links,
.footer-contact {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #ff9900; /* highlight on hover */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}
.contact-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #ff6600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-submit {
  background: #ff6600;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #e55b00;
}

.admin-messages table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.admin-messages th, .admin-messages td {
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.admin-messages th {
  background: #f4f4f4;
}

.btn-delete {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-delete:hover {
  background: #c82333;
}

/*
STYLING FOR ADMIN USER DISPLAY SECTION
*/
.admin-container {
  width: 90%;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-title {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #333;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.data-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.btn-danger {
  background: #d9534f;
  color: white;
}

.btn-danger:hover {
  background: #c9302c;
}

.no-data {
  text-align: center;
  color: #777;
  font-style: italic;
}

.badge {
  background: #4CAF50;
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}
/* CONTACT FORM STYLES */
.contact-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 10px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0056b3;
}

/* ALERTS */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: 500;
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
