/* =====================
   BODY & BACKGROUND
===================== */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298, #b31217, #e52d27);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: white;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "UP";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-weight: bold;
  background: linear-gradient(90deg, #00c6ff, #ff6a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(2px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* =====================
   HEADING
===================== */
h1 {
  text-align: center;
  padding: 25px;
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

/* =====================
   MAIN CONTAINER
===================== */
.main-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* =====================
   SIDEBAR
===================== */
.sidebar {
  width: 220px;
  background: rgba(59, 42, 104, 0.95);
  border-radius: 15px;
  padding: 15px;
  height: fit-content;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffccff;
  text-align: center;
}

.sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #f3f0ff;
  color: #5a2eca;
  border: none;
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar button:hover,
.sidebar button.active {
  background: linear-gradient(90deg, #5a2eca, #8a5eff);
  color: white;
  box-shadow: 0 4px 12px rgba(90, 46, 202, 0.5);
}

/* =====================
   COURSE SLIDER
===================== */
.course-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px 0;
}

.course-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.course-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.course-card h3 {
  margin: 15px;
  font-size: 20px;
  color: #2e214f;
}

.course-card p {
  margin: 0 15px 15px;
  color: #444;
  font-size: 14px;
}

.course-info {
  display: flex;
  justify-content: space-between;
  padding: 0 15px 15px;
  font-size: 13px;
  color: #666;
}

.course-link {
  display: block;
  text-align: center;
  background: #f3f0ff;
  color: #5a2eca;
  padding: 12px;
  font-weight: bold;
  text-decoration: none;
  border-top: 1px solid #eee;
  transition: 0.3s;
}

.course-link:hover {
  background: linear-gradient(90deg, #5a2eca, #8a5eff);
  color: white;
}

/* =====================
   HAMBURGER MENU
===================== */
.hamburger-container {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
}

.hamburger-btn {
  background: #5a2eca;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* =====================
   OVERLAY
===================== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
}

.course-slider {
  overflow-x: auto;
  cursor: grab; /* shows hand cursor */
  -webkit-overflow-scrolling: touch; /* smooth touch on iOS */
}

.course-slider:active {
  cursor: grabbing;
}


/* =====================
   RESPONSIVE
===================== */
@media (max-width: 600px) {
  .main-container {
    flex-direction: column;  /* stack vertically */
    padding: 10px;
  }

  /* Sidebar on top */
  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;       /* allow buttons to wrap into multiple rows */
    gap: 10px;
    padding: 10px;
    justify-content: space-between; /* space between buttons */
    margin-bottom: 15px;   /* space below buttons */
    height: auto;           /* let it expand */
  }

  .sidebar h2 {
    display: none;          /* hide title */
  }

  .sidebar button {
    flex: 1 1 calc(33.33% - 10px); /* 3 buttons per row */
    font-size: 14px;
    padding: 10px;
    white-space: normal;    /* allow text to wrap if needed */
    text-align: center;
  }

  .course-slider {
    width: 100%;
    padding: 10px 0;
  }

  .course-track {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;       /* horizontal row of cards */
  }

  .course-card {
    width: 180px;            /* smaller cards for phones */
  }
}

