

/* 🌐 General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* 🧭 Layout */
body {
  display: flex;
  background-color: #f5f3ef;
  min-height: 100vh;
  overflow-y: auto;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

/* 🧱 Sidebar */
.sidebar {
  width: 15vw;
  background-color: #1e1e2f;
  color: #fff;
  padding: 1.5vw;
  display: flex;
  flex-direction: column;
  justify-content: start;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.sidebar-links a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  transition: 0.3s;
}

.sidebar-links a:hover {
  color: #f9b233;
}

/* 🧾 Main Content */
.content {
  margin-left: 15vw;
  padding: 3vw;
  width: calc(100% - 15vw);
}

/* 💬 Intro Box */
.intro-box {
  background-color: #fff;
  padding: 2vw;
  border-radius: 1vw;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2vw;
  max-height: 35vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f9b233 #fff;
}

.intro-box h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: #333;
}

.intro-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.intro-buttons button {
  background-color: #f9b233;
  border: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  cursor: pointer;
  transition: 0.3s;
}

.intro-buttons button:hover {
  background-color: #e0a025;
}

/* 🧩 Divider */
.divider {
  height: 0.15rem;
  background-color: #ddd;
  margin: 2vw 0;
}

/* 🌿 Branches */
.branches {
  background-color: #fff;
  padding: 2vw;
  border-radius: 1vw;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1);
  margin-bottom: 2vw;
}

.branch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  margin-top: 1rem;
}

.branch {
  flex: 1 1 25rem;
  background-color: #f9f9f9;
  padding: 1.5vw;
  border-radius: 0.8rem;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.branch:hover {
  transform: translateY(-0.3rem);
}

.branch h3 {
  color: #222;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
}

/* 🎓 Course Cards */
.courses {
  background-color: #fff;
  padding: 2vw;
  border-radius: 1vw;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1);
}

.courses h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  color: #333;
}

.course-card {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 1.5vw;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-0.3rem);
}

.course-card h3 {
  color: #222;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
}

.course-card p {
  color: #555;
  font-size: clamp(0.85rem, 1vw, 1rem);
  margin-bottom: 1rem;
}

.start-btn {
  background-color: #f9b233;
  border: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  cursor: pointer;
  transition: 0.3s;
}

.start-btn:hover {
  background-color: #e0a025;
}

/* ⚙️ Footer */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 15vw;
  background-color: #1e1e2f;
  color: #ddd;
  text-align: center;
  padding: 1rem 0;
  font-size: clamp(0.8rem, 1vw, 1rem);
}

/* 🔸 ZOZ Button */
.zoz {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #ff7b00;
  color: white;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.6rem rgba(255, 140, 0, 0.6);
  transition: all 0.3s ease;
}

.zoz:hover {
  background-color: #ffa733;
  box-shadow: 0 0 1.25rem rgba(255, 165, 0, 0.9);
  transform: scale(1.05);
}

/* 🟡 Sidebar Buttons */
.sidebar button {
  margin-top: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #f9b233;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  transition: all 0.3s ease;
}

.sidebar button :hover {
  background-color: #e0a025;
  transform: scale(1.05);
}

/* 🏅 Rank Message */
#rank-message {
  background-color: #2c2c3c;
  color: #fff;
  padding: 0.6rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  font-size: clamp(0.8rem, 1vw, 1rem);
  display: none;
}

#rank-message.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🌙 Dark Mode */
body.dark-mode {
  background-color: #1e1e2f;
  color: #eee;
}

body.dark-mode .content,
body.dark-mode .branches,
body.dark-mode .courses,
body.dark-mode .intro-box {
  background-color: #2a2a3d;
  color: #fff;
}

body.dark-mode .course-card {
  background-color: #3a3a4d;
}

body.dark-mode .start-btn {
  background-color: #f9b233;
}

/* 📱 Responsive Tweaks */
@media (max-width: 64rem) {
  .sidebar {
    width: 18vw;
  }
  .content {
    margin-left: 18vw;
  }
}

@media (max-width: 48rem) {
  body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: auto;
  }
  .sidebar-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .content {
    margin-left: 0;
    width: 100%;
  }
  footer {
    position: relative;
    left: 0;
    width: 100%;
  }
}






