/* Global */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #4b0082, #c71585, #ff1493);
  color: white;
  padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.site-name {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.site-name strong {
  font-weight: bold;
}

.site-name em {
  font-style: italic;
  color: #ddd;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 500;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  transition: all 0.3s ease;
  position: relative;
}

/* Drop underline on hover */
.dropbtn::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 50%;
  bottom: 6px;
  background-color: #fff;
  transition: width 0.3s ease, left 0.3s ease;
}

.dropbtn:hover::after {
  width: 100%;
  left: 0;
}

.dropbtn:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
  border-radius: 4px;
  padding: 5px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown Items */
.sub-dropbtn {
  background: none;
  border: none;
  color: #333;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sub-dropbtn:hover {
  background-color: #f2f2f2;
}

/* Notes Section */
.container {
  padding: 30px;
  text-align: center;
}

.class-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.class-list button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: #c0392b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.class-list button:hover {
  background-color: #a93226;
}

.notes-display {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}

/* Slider */
.slider {
  position: relative;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin: 20px auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
}

.slide {
  min-width: 100%;
  height: 280px;
  object-fit: cover;
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: block;
  opacity: 1;
  position: relative;
}

.prev, .next {
  position: absolute;
  top: 50%;
  padding: 10px;
  font-size: 24px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 4px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
  transition: background 0.2s ease;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Description */
.description {
  background-color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}

.description-container {
  max-width: 900px;
  margin: 0 auto;
}

.description h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.description p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background: linear-gradient(to right, #3a0ca3, #7209b7);
  color: white;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left h3 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.footer-left p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffda77;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .dropdown,
  .dropdown-content {
    width: 100%;
  }

  .dropbtn,
  .sub-dropbtn {
    width: 100%;
    text-align: left;
    font-size: 16px;
    padding: 10px;
  }

  .dropdown-content {
    position: relative;
    background: #fff;
    box-shadow: none;
  }

 @media (max-width: 100px) {
  .banner {
    max-height: 50px; /* reduce height on small screens */
  }
}


  .slide {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .description h2 {
    font-size: 22px;
  }

  .description p {
    font-size: 15px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center;
  }

  .class-list {
    flex-direction: column;
    gap: 12px;
  }

  .class-list button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }
}
.class-section {
  margin-bottom: 40px;
}

.class-section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button-group button {
  padding: 12px 24px;
  font-size: 16px;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.2s ease;
}

.button-group button:hover {
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  transform: scale(1.05);
}
.description h2 {
  font-size: 30px;
  font-weight: bold;
  color: #4b0082;
  margin-bottom: 20px;
}

.description p {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 14px;
}

.cta-buttons {
  margin-top: 25px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-buttons button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.notes-dashboard h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.notes-dashboard h1 span {
  margin-right: 8px;
}

.class-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.class-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 30px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.class-card:hover {
  transform: translateY(-5px);
}

.class-card h2 {
  font-size: 24px;
  color: #6a11cb;
  margin-bottom: 10px;
}

.class-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.stream-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.stream-buttons button {
  padding: 10px 20px;
  font-size: 15px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.theme-switch {
  margin-left: auto;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}

#themeToggle:hover {
  transform: scale(1.2);
}
.dark-theme {
  background: #121212;
  color: #f0f0f0;
}

.dark-theme .navbar {
  background: linear-gradient(90deg, #2c2c2c, #3b3b3b);
}

.dark-theme .class-card,
.dark-theme .notes-display,
.dark-theme .description,
.dark-theme .footer {
  background: #1e1e1e;
  color: #eee;
}

.dark-theme .stream-buttons button {
  background: linear-gradient(135deg, #333, #555);
}

.dark-theme .footer-links a {
  color: #ccc;
}
.dark-theme .description h2,
.dark-theme .description p {
  color: #eee;
}

section, .slider, .container {
  margin-bottom: 60px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .4s;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider-round {
  background-color: #2196F3;
}

input:checked + .slider-round:before {
  transform: translateX(26px);
}
.red-button {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(to right, #ff4b2b, #ff416c);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.red-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.slider, .banner-wrapper {
  width: 100%;
  overflow: hidden;
}
/* Banner Image Styling */
.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 400px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner-img {
    max-height: 220px;
    object-fit: contain;
  }
}
.about-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: #333;
}

.about-container h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #4b0082;
}

.about-container h2 {
  margin-top: 30px;
  font-size: 24px;
  color: #c0392b;
}

.about-container ul {
  padding-left: 20px;
  margin-top: 10px;
}

.about-container ul li {
  margin-bottom: 10px;
}
.about-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: #333;
}

.about-container h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #4b0082;
  text-align: center;
}

.about-container h2 {
  margin-top: 30px;
  font-size: 24px;
  color: #c0392b;
}

.about-container ul {
  padding-left: 20px;
  margin-top: 10px;
}

.about-container ul li {
  margin-bottom: 10px;
}
body {
  padding: 0 12px;
  font-size: 15px;
}

.subject-box a {
  display: block;
  padding: 10px;
  font-size: 15px;
}
