/* ------------------------------------------------------
   GLOBAL RESET
-------------------------------------------------------*/
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f3f4f6;
}


/* ------------------------------------------------------
   FIXED NAVBAR — CLEAN + RESPONSIVE
-------------------------------------------------------*/
.navbar {
  background-color: #8000FF;
  color: #FFFFFF;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}

.logo img {
  height: 42px;
  width: 42px;
  border-radius: 10px;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  align-items: center;           
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------
   NAVBAR LINKS (RESET)
-------------------------------------------------------*/
.menu a {
  display: inline-flex;          /* FIX clipping */
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;

  padding: 8px 16px;
  border-radius: 10px;

  transition: 0.25s ease;
  height: 40px;                  /* FIX: stable height */
}

/* HOVER */
.menu a:hover {
  background: #9B2BFF;
  transform: translateY(-2px);
}

/* ------------------------------------------------------
   SIGNUP BUTTON (FIXED)
-------------------------------------------------------*/
.signup-btn {
  background: #FFFFFF;
  color: #8000FF !important;
  border: 2px solid #FFFFFF;
  font-weight: 700;
  border-radius: 10px;

  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

.signup-btn:hover {
  background: #f3e6ff;
  color: #551891;
  transform: translateY(-2px);
}

/* ------------------------------------------------------
   LOGIN BUTTON (Glass)
-------------------------------------------------------*/
.login-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.55);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.login-btn:hover {
  background: rgba(255,255,255,0.30);
}

/* ------------------------------------------------------
   MOBILE RESPONSIVE
-------------------------------------------------------*/
@media (max-width: 600px) {
  .navbar {
    padding: 12px 20px;
    height: auto;
  }

  .menu {
    gap: 10px;
  }

  .menu a {
    padding: 6px 14px;
    font-size: 14px;
    height: auto;
  }
}



/* ------------------------------------------------------
   COURSES GRID
-------------------------------------------------------*/
.courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
    flex-direction: column;
  gap: 48px;
  align-items: center;
}

/* COURSE CARD */
/* =========================
   COURSE – LIST STYLE (SAFE)
========================= */

.course {
  display: flex;
  gap: 40px;
  padding: 18px;
  width: 100%;
  max-width: 900px;
  align-items: center;
}

/* image */
.course-img {
  flex: 0 0 320px;
}

.course-img img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
}

/* info */
.course-info {
  gap: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
  margin-bottom: 6px;
}

.course-info p {
  margin: 0 0 12px;
  height: auto; /* IMPORTANT: remove clipping */
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

/* footer */
.course-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
   margin-top: 18px; /* space from description */
  gap: 14px;
}

/* button */
.view-course-btn {
  align-self: flex-start;
  background: linear-gradient(135deg, #69489b, #8000ff);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 10px;
}

.view-course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(128,0,255,0.35);
}

/* mobile */
@media (max-width: 900px) {
  .course {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .course-img {
  flex: 0 0 100%;
}

.course-img img {
  object-fit: cover;
  border-radius: 14px;
   width: 100%;
    height: 220px;
}

}


.price {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

/* ------------------------------------------------------
   POPUP (Hover Details)
-------------------------------------------------------*/
.popup {
  position: absolute;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  width: 300px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.popup.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------
   LOADING TEXT
-------------------------------------------------------*/
.loading {
  text-align: center;
  margin-top: 50px;
  font-size: 18px;
  color: #555;
}


/* ------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------*/
@media (max-width: 900px) {
  .course { width: 85%; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 28px; }
  .navbar { padding: 12px 20px; }
  .menu { gap: 14px; }
}


/* ------------------------------------------------------
   FOOTER SECTION
-------------------------------------------------------*/
.footer {
  background: #8000FF;
  color: #FFFFFF;
  padding: 40px 20px 20px;
  margin-top: 40px;
  border-top: 2px solid #9B2BFF;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
}

.footer-section a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 6px 0;
  display: block;
}

.footer-section a:hover {
  color: #E9D7FF;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  font-size: 14px;
  color: #FFFFFF;
  border-top: 1px solid #E9D7FF;
}



/* Mobile */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------
   FUN LOADING SPINNER
-------------------------------------------------------*/

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader.hidden {
  display: none;
}

.spinner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 8px solid #ddd;
  border-top: 8px solid #6366f1;
  border-right: 8px solid #ef4444;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #8000FF;
  padding: 10px 0;
  list-style: none;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.dropdown-menu li a {
  padding: 10px 18px;
  display: block;
  transition: 0.3s;
}

.dropdown-menu li a:hover {
  background: #9B2BFF;
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/* ============================
   HERO – IMAGE CARD STYLE
============================ */
.hero {
  padding: 40px 20px 50px;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
}

/* Floating hero card */
.hero-card {
  width: 100%;
  max-width: 1100px;
  height: 420px;

  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);

  position: relative;
  overflow: hidden;
}

/* Soft overlay for text readability */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #bfa3db 35%,
    #966bdc 65%,
    #4f1b9c 100%
  );
}


/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 520px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 40px;
}

/* Heading */
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: #482b74;
}

/* Subtitle */
.hero-content p {
  font-size: 18px;
  color: #1d1919;
  line-height: 1.6;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .hero-card {
    height: auto;
  }

  .hero-content {
    padding: 40px 28px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }
}


