body {
  font-family: 'Poppins', sans-serif;
  background: #0f1116;
  color: white;
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161a20;
  padding: 15px 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  flex-wrap: wrap;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0 0;
}

nav a.nav-btn {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  transition: all 0.3s ease;
  font-size: 14px;
}

.fade-blur {
  animation: fadeInBlur 0.6s ease forwards;
}

@keyframes fadeInBlur {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.glass-box > * {
  transition: all 0.4s ease;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding: 15px;
}

.glass-box {
  background: #1c1f26;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 25px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.feather-btn {
  background: #2b2f3a;
  border: 1px solid #ffffff0d;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
  flex: 1 1 100px;
  margin: 6px;
}


.feather-btn:hover {
  background: #ff4d4d33; /* translucent red */
  color: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5), 0 0 20px rgba(255, 77, 77, 0.2);
  transform: scale(1.05);
  border: 1px solid #ff4d4d66;
}


.button-wrapper,
.class-wrapper,
.day-buttons,
.back-btn,
.section-buttons {
  display: none;
}

.visible {
  display: flex;
}

.button-wrapper {
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.class-wrapper {
  flex-direction: column;
  gap: 20px;
}

.class-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.timetable-display {
  backdrop-filter: blur(10px);
  background: rgba(43, 47, 58, 0.8);
  transition: all 0.4s ease;
}

.day-buttons,
.section-buttons {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.day-buttons.visible,
.section-buttons.visible {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.day-buttons .feather-btn.selected-day {
  background: #ff4d4d;
  color: white;
}

.back-btn {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.back-btn button {
  background: #ff4d4d;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

td {
  padding: 6px 8px;
  border-bottom: 1px solid #444;
}

/* ✅ MOBILE FRIENDLY ADJUSTMENTS */
@media screen and (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .glass-box {
    padding: 20px 15px;
  }

  .feather-btn {
    flex: 1 1 100px;
    font-size: 12px;
    padding: 8px;
  }

  .timetable-display {
    font-size: 12px;
    padding: 10px;
  }

  table td {
    padding: 4px 6px;
  }
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: #161a20;
    padding: 10px 0;
    width: 100%;
    margin-top: 10px;
    border-top: 1px solid #333;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
    padding: 8px 20px;
  }

  nav ul li a {
    display: block;
    width: 100%;
  }
}

.fade-smooth {
  opacity: 0;
  transform: translateY(10px);
  animation: smoothFadeIn 0.35s ease-out forwards;
}

@keyframes smoothFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlight selected section button */
.selected-section {
  background-color: #007BFF; /* bright blue */
  color: white;
  border: 2px solid #0056b3;
  font-weight: bold;
}

/* Animate fade-in effect */
@keyframes fadeIn {
  from { opacity: 0; filter: blur(5px); }
  to { opacity: 1; filter: blur(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}
/* Slideshow container */
.slideshow-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  height: 400px; /* fixed height */
  margin: 20px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: #1c1f26;
}

/* Hide all slides by default */
.slide {
  display: none;
  width: 100%;
  height: 100%; /* full height of box */
  border-radius: 14px;
  object-fit: cover; /* cover the box */
}

/* Show active slide */
.slide.active {
  display: block;
}


/* Prev & next buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  color: white;
  font-weight: bold;
  font-size: 28px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.5);
  user-select: none;
  border: none;
  transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 77, 77, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Dots container */
.dots {
  text-align: center;
  padding: 10px 0;
  background: #161a20;
  border-top: 1px solid #333;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Individual dot */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #555;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot:hover {
  background-color: #ff4d4d;
}

.active-dot {
  background-color: #ff4d4d;
}
/* Video container for responsive iframe */
.glass-box > div {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.glass-box > div iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  color: white;
  text-decoration: none; /* remove underline */
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ff4d4d; /* Feather Client red-ish glow */
  text-shadow: 0 0 8px #ff4d4d;
}
nav a.nav-btn:hover {
  background: #ff4d4d33; /* translucent red */
  color: #ff4d4d;       /* bright red */
  box-shadow: 0 0 8px #ff4d4d;
  transform: scale(1.05);
  transition: all 0.3s ease;
  border-radius: 8px;
}
nav a.nav-btn {
  transition: all 0.3s ease;
}


