@import url("https://fonts.googleapis.com/css?family=SF+Pro+Display:300,400,500,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SF Pro Display", sans-serif;
  transition: all 0.3s linear;
}

body {
  width: 100vw !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px;
  height: 85px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar h1 {
  font-size: 24px;
  font-weight: bold;
  color: black;
  margin-left: 10px;
}

.navbar a {
  color: black;
  text-decoration: none;
  margin: 5px 2px;
  transition: color 0.3s;
  display: flex;
  position: relative;
}

.navbar .nav-links a {
  /* color: #2c3e50; */
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.navbar .nav-links a:nth-child(-n + 9)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0%;
  background-color: rgba(0, 0, 0, 0.889);
  transition: width 0.3s ease;
}

/* Dark mode underline */
body.dark-mode .navbar .nav-links a:nth-child(-n + 9)::after {
  background-color: rgba(255, 255, 255, 0.9); /* white underline in dark mode */
}

.navbar .nav-links a:nth-child(-n + 9):hover::after {
  width: 100%;
}

.navbar .btn.login {
  border: 1px solid black;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .btn.login:hover {
  background-color: black;
  color: white;
}

.navbar .btn.signup {
  border: 1px solid black;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  background-color: black;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .btn.signup:hover {
  background-color: white;
  color: black;
}

/* Logout Button */
.navbar .btn.logout {
  border: 1px solid black;
  display: inline-block;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: 500;
  color: black;
  transition: background-color 0.3s, color 0.3s, transform 0.2s ease;
}

.navbar .btn.logout:hover {
  background-color: black;
  color: white;
  transform: scale(1.05);
}

/* Dark Mode for Logout Button */
body.dark-mode .navbar .btn.logout {
  border: 1px solid white;
  color: white;
}

body.dark-mode .navbar .btn.logout:hover {
  background-color: white;
  color: black;
}

/* ==================== */
/* Default (Light Mode) */
/* ==================== */
body {
  background-color: #ffffff;
  color: #333;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
}
.navbar a {
  color: #333;
}

/* Buttons */
.btn.signup {
  background-color: rgb(218, 32, 32);
  color: #fff;
}
.btn.signup:hover {
  background-color: rgb(200, 30, 30);
}

/* Features */
.features {
  background-color: #f9f9f9;
  color: #333;
}
.features .feature-card {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* Testimonials */
.testimonial {
  background-color: #f9f9f9;
  color: #333;
}
.testimonial .testimonial-card {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
}

/* Footer */
footer {
  background: #f9f9f9;
  color: #333;
}

/* ==================== */
/* Dark Mode Overrides */
/* ==================== */
body.dark-mode {
  background-color: #121212;
  color: #f5f5f5;
}

/* Navbar */
body.dark-mode .navbar {
  background-color: #1e1e1e;
}
body.dark-mode .navbar a {
  color: #f5f5f5;
}

/* Buttons */
/* body.dark-mode .btn.signup {
  background-color: black;
}*/
/* body.dark-mode .btn.signup:hover {
  background-color: black;
}  */

/* Sections background → full black */
body.dark-mode section,
body.dark-mode .hero,
body.dark-mode .features-section {
  background-color: #121212 !important;
}

/* Features */
body.dark-mode .features .feature-card {
  background-color: #1e1e1e !important;
  color: #f5f5f5 !important;
  border: 1px solid #333;
}

/* Testimonials */
body.dark-mode .testimonial .testimonial-card {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
  border: 1px solid #444;
}

/* Footer */
body.dark-mode footer {
  background: #1e1e1e;
  color: #fff;
}

/* Special headings fix */
body.dark-mode #why-learn h2,
body.dark-mode .main h1 {
  color: black !important;
}

/* ==================== */
/* Dark Mode Toggle Btn */
/* ==================== */
.dark-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
}

body.dark-mode .dark-toggle-btn {
  color: #f5f5f5;
}

/* Sun / Moon Toggle Icon Switch */
#darkModeToggle .fa-sun {
  display: none;
}
body.dark-mode #darkModeToggle .fa-moon {
  display: none;
}
body.dark-mode #darkModeToggle .fa-sun {
  display: inline;
}

.navbar .nav-links {
  display: flex;
  padding: 0 10px;
  /* font-size: 0.9rem; */
}
/* ========== Dropdown Styles ========== */

/* Parent */
.nav-item {
  list-style: none;
  position: relative;
}

/* Dropdown container */
.dropdown {
  display: none;
  position: absolute;
  top: 100%; /* directly below parent */
  left: 0;
  background-color: #ffffff; /* white background */
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  flex-direction: column; /* stack like list */
  z-index: auto;
  max-height: none;
  line-height: 1.2;
  gap: 2px;
  margin: 0px;
}

/* Dropdown items */
.dropdown a {
  display: block;
  padding: 0px 16px;
  color: #333;
  border: none !important;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 0px;
}

/* Hover effect */
.dropdown a:hover {
  background-color: #b3abe6; /* light gray highlight */
  padding-left: 20px; /* slight indent */
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown,
.nav-item.show .dropdown {
  display: flex;
}

/* Arrow rotation when active */
.nav-item.show .arrow {
  transform: rotate(180deg);
}

/* Arrow */
.arrow {
  font-size: 14px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* Dark Mode Dropdown - No Scrollbar Version */
body.dark-mode .dropdown {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  padding: 5px 0;
  min-width: 180px;
  overflow: hidden; /* prevents overflow */
  transition: all 0.3s ease;
}

body.dark-mode .dropdown a {
  color: #f0f0f0;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative; /* allows pseudo-element for hover effect */
}

/* Hover effect without increasing width */
body.dark-mode .dropdown a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;           /* small indicator on hover */
  height: 100%;
  background-color: white; /* gold indicator */
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 4px 0 0 4px;
}

body.dark-mode .dropdown a:hover::before {
  opacity: 1; /* show indicator without expanding the link */
}

body.dark-mode .dropdown a:hover {
  background-color: #2a2a2a;
  color: white;
  box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.2);
  padding-left: 16px; /* same as normal, no increase */
}



/* ========== Mobile view ========== */
@media (max-width: 768px) {
  .dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    display: none;
  }

  .nav-item.show .dropdown {
    display: flex;
  }

  .dropdown a {
    border-bottom: 1px solid #eee;
  }
}

/* #navbar-x-logo {} */
/* } */

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 80vh;
  background: linear-gradient(
    45deg,
    rgba(158, 198, 217, 0.4) 20%,
    white 70%,
    rgb(150, 182, 201, 0.1) 10%
  );
  margin-top: 20px;
}

.main h1 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
}

.main p {
  font-family: "Times New Roman", Times, serif;
}

.main .images {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.main img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin: 10px;
}

.hero-section-imgs#hero-img-center {
  animation: animate-center-image 3s infinite;
}

.hero-section-imgs.hero-imgs-muted {
  animation: animate-muted-images 3s infinite;
}

@keyframes animate-center-image {
  50% {
    width: 320px;
    height: 320px;
  }

  100% {
    width: 300px;
    height: 300px;
  }
}

@keyframes animate-muted-images {
  50% {
    width: 130;
    height: 130;
  }

  100% {
    width: 160px;
    height: 160px;
  }
}

.main img.hero-imgs-muted {
  opacity: 0.3;
}

.main img#hero-img-center {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin: 10px;
}

/* trending course */
/* #webdev {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #ffffff;
  padding: 30px;
  height: 500px;
  background-image: url("../../assets/images/webdev.png");
  background-position-x: center;
  background-position-y: bottom;
  background-size: 80%;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 20px;
}

.course-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: black;
  opacity: 0.1;
}

#webdev .info {
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

#webdev .info h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #39009c;
}

#webdev .info p {
  font-size: 24px;
  margin-bottom: 10px;
}

#webdev .info span {
  color: red;
  font-size: 36px;
  margin-right: 10px;
}

#webdev .info del {
  margin-left: 10px;
}

#webdev .info button {
  border: none;
  outline: none;
  background-color: blue;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

#webdev .info button:hover {
  background-color: white;
  color: blue;
}

#webdev .tech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  margin-top: 10px;
}

#webdev .tech img {
  width: 50px;
  height: 50px;
  object-fit: cover;
} */

/* courses-heading */
#our-course-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin: 40px 0 20px;
  color: #2575fc;
  transition: 0.4s ease;
}

#our-course-h1:hover {
  color: #240d64;
}

/* courses */
/* COURSES SECTION */
#courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--bg-color);
}

/* Individual course box */
.course {
  color: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to right, #2a0c0c, rgb(81, 86, 91), #0d0f11);
  background-size: 300% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.course:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

/* Image */
.course img {
  width: 120px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Course info */
.course-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.course-info span {
  font-size: 20px;
  color: #ff6b6b;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.course-info del {
  color: #cccccc;
  margin-left: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.course-info p {
  margin-top: 8px;
  color: #e0e0e0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enroll button */
.course-info button {
  margin-top: 15px;
  background: linear-gradient(145deg, #330000, #cd5b03); /* dark lava base */
  color: #fff;
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 100, 0, 0.3);
  box-shadow: 0 0 15px rgba(255, 80, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.3),
    inset 0 0 5px rgba(255, 150, 0, 0.2);
  animation: lavaPulse 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(27, 83, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(27, 83, 129, 0.6);
  }
}

@keyframes lavaPulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 80, 0, 0.4),
      0 0 30px rgba(255, 0, 0, 0.3), inset 0 0 5px rgba(255, 150, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 120, 0, 0.6),
      0 0 50px rgba(255, 60, 0, 0.4), inset 0 0 10px rgba(255, 180, 0, 0.3);
  }
}

/* Dark mode improvements for course cards */
body.dark-mode .course {
  background: linear-gradient(to right, #1a1a1a, #2d2d2d, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .course-info h3 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

body.dark-mode .course-info span {
  color: #ff7b7b;
}

body.dark-mode .course-info del {
  color: #bbbbbb;
}

body.dark-mode .course-info p {
  color: #d0d0d0;
}

.course-info button:hover {
  transform: scale(1.1);
  border: 1px solid #fff;
  color: #fff;
}

/* footer CSS */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  background-color: black;
  color: white;
  padding: 20px;
  border-start-start-radius: 10px;
  border-start-end-radius: 10px;
  position: relative;
  padding-bottom: 30px !important;
}
.footer-left{
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
}
.footer-right{
  display: flex;
  gap: 1rem;
}
.footer h3 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 5px;
}

.footer a:hover {
  color: #f0f0f0;
}

.footer .social {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.footer .social h1 {
  font-size: 36px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  text-align: center;
}

.footer .social svg {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin: 5px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social svg:hover {
  transform: scale(1.05);
  background-color: rgba(245, 244, 244, 0.466);
  border: 1px solid rgba(245, 244, 244, 0.466);
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .contact {
  display: flex;
  flex-direction: column;
}

.contact a {
  color: #b3b3b3;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
  color: white;
}

#envelope-icon,
#call-icon {
  margin-right: 10px;
}

.footer .form {
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

.footer .form input,
.footer .form textarea {
  border: none;
  outline: none;
  padding: 10px;
  margin: 5px;
  width: 200px;
  border-radius: 5px;
}

.footer .form button {
  border: none;
  outline: none;
  background-color: blue;
  color: white;
  padding: 10px;
  margin: 5px;
  width: 100px;
  cursor: pointer;
  border-radius: 5px;
}

.footer .form button:hover {
  background-color: white;
  color: blue;
}

.footer .form .form-group {
  margin-bottom: 7px;
  text-align: left;
}

.footer .form .form-group label {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  color: #f0f0f0;
}

.footer .copy {
  text-align: center;
  margin-top: 20px;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

/* This CSS is for testimonial */
.testimonial-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.testimonial-card {
  width: 330px;
  max-width: 700px;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 7vh;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  background: linear-gradient(to right, #0c0011, rgb(81, 86, 91), #0d0f11);
  background-size: 300% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

/* 3D Hover Effect */
.testimonial-card:hover {
  transform: translateY(-12px) scale(1.03) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.25); /* Aqua glow */
  cursor: pointer;
}

.testimonial-card img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 45px rgba(57, 192, 215, 0.4), 0 0 30px rgba(18, 129, 159, 0.3),
    inset 0 0 5px rgba(57, 199, 234, 0.2);
  animation: lavaPulse 2s infinite ease-in-out;
}

.testimonial-quote {
  padding: 0.95rem;
  line-height: 1.4;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 10px;
}

.testimonial-name {
  font-weight: bold;
}

.testimonial-position {
  color: #c1baba;
  font-size: 14px;
}

#testimonial-btn-left,
#testimonial-btn-right {
  background: linear-gradient(145deg, #330000, #cd5b03);
  border: none;
  padding: 10px;
  margin: 1rem;
  color: #ebe3e3;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 80, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.3),
    inset 0 0 5px rgba(255, 150, 0, 0.2);
  animation: lavaPulse 2s infinite ease-in-out;
}

#testimonial-btn-left:hover,
#testimonial-btn-right:hover {
  transform: scale(1.1);
  background: rgb(90, 29, 3);
  transition: 0.5s;
}

/* Scroll to top */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: #0a0a0a;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  box-shadow: 0 12px 20px rgba(20, 5, 158, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  /* initially at bottom */
  transform: translateY(65px);
}

#scrollTopBtn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
  fill: white;
  position: relative;
  top: 4px;
}
#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  background-color: #093586;
  transform: translateY(0) scale(1.05);
  box-shadow: 0 0 10px rgba(14, 39, 182, 0.4);
}
#scrollTopBtn:hover svg {
  transform: scale(1.1);
  top: 0;
}
.dark #scrollTopBtn {
  background-color: white;
}
.dark #scrollTopBtn svg {
  fill: #0a0a0a; /* arrow color for dark mode */
}

/* bounce animation added to back to top */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* apply bounce when not hover  */
#scrollTopBtn.bounce:not(:hover) svg {
  animation: bounce 2s infinite;
}

/* Dark Mode Switch Styles  */
.toggle-switch {
  position: relative;
  width: 60px;
  height: 10px;
  margin-left: auto;
  margin-right: 40px;
  margin-bottom: 30px;
  padding: 10px;
  --light: #d8dbe0;
  --dark: #28292c;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

.switch-label {
  position: absolute;
  width: 100%;
  height: 30px;
  background-color: var(--dark);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark);
}

.checkbox {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.checkbox:checked ~ .slider {
  background-color: var(--light);
}

.slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  -webkit-box-shadow: inset 12px -4px 0px 0px var(--light);
  box-shadow: inset 12px -4px 0px 0px var(--light);
  background-color: var(--dark);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: var(--dark);
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Why Learn With Us Section */
#why-learn {
  padding: 60px 20px;
  background: #f0f4f8;
}

#why-learn h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: rgba(77, 138, 182, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-card:hover {
  border: 2px solid #4a90e2;
  background: rgba(77, 138, 182, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  cursor: pointer;
}

.why-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.why-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
}

.why-card p {
  font-size: 0.95em;
  color: #555;
}

@media (max-width: 600px) {
  #why-learn {
    padding: 40px 10px;
  }

  .why-card {
    padding: 16px;
  }
}

/* ========== Language Selector Styles ========== */
#language-selector {
  position: relative;
}

.language-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-toggle .flag {
  font-size: 16px;
  line-height: 1;
}

.language-toggle .lang-name {
  font-size: 14px;
  font-weight: 500;
}

.language-dropdown {
  min-width: 180px;
  max-height: 250px;
  overflow-y: auto;
}

.language-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 16px !important;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: #f8f9fa;
  padding-left: 20px !important;
}

.language-option.active {
  background-color: rgba(164, 168, 172, 0.6);
  font-weight: 500;
}

.language-option.active:hover {
  background-color: rgba(164, 168, 172, 0.6);
}

.language-option .flag {
  font-size: 16px;
  line-height: 1;
}

.language-option .lang-name {
  font-size: 14px;
}

/* Mobile responsive for language selector */
@media (max-width: 768px) {
  .language-dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    max-height: none;
  }

  .language-option {
    border-bottom: 1px solid #eee;
  }

  /* ==================== */
  /* Dark Mode Final Fix  */
  /* ==================== */

  body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
  }

  /* Section backgrounds full black */
  body.dark-mode .hero,
  body.dark-mode .features,
  body.dark-mode .testimonial {
    background-color: #121212 !important;
  }
}
/* Keep feature cards light in dark mode */
body.dark-mode .features .feature-card {
  background-color: #fff !important;
  color: #333 !important;
  border: 1px solid #ccc !important;
}

/* Testimonials cards dark */
body.dark-mode .testimonial .testimonial-card {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
  border: 1px solid #444;
}

/* Headings in dark mode */
body.dark-mode .hero h1,
body.dark-mode #why-learn h2 {
  color: #f5f5f5 !important; /* or white */
}

body.dark-mode .testimonial h2 {
  color: #f5f5f5 !important;
}
/* Dark mode for hero section */
body.dark-mode .hero-section,
body.dark-mode .main {
  background: #121212 !important; /* Dark background */
  color: #f5f5f5 !important; /* Make text white */
}

body.dark-mode .hero-section h1,
body.dark-mode .main h1 {
  color: #f5f5f5 !important; /* Ensure headings are white */
}
/* ==================== */
/* Dark Mode Base Styles */
/* ==================== */
body.dark {
    background-color: #121212 !important;
    color: #f5f5f5 !important;
}

/* Navbar Dark Mode */
body.dark .navbar {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333;
}

body.dark .navbar a,
body.dark .navbar h1 {
    color: #f5f5f5 !important;
}


/* Campus Ambassador Section Dark Mode */
body.dark .campus-ambassador-section {
    background-color: #1a1a1a !important;
}

body.dark .benefit-card,
body.dark .cta-section {
    background: #2c2c2c !important;
    border-color: #444 !important;
    color: #f5f5f5 !important;
}

body.dark .benefit-card h3,
body.dark .cta-section h3 {
    color: #ffffff !important;
}

body.dark .benefit-card p,
body.dark .cta-section p {
    color: #cccccc !important;
}

/* About Campus Section Dark Mode */
body.dark .about-campus {
    background: #1a1a1a !important;
}

body.dark .why-content,
body.dark .container {
    background: #2c2c2c !important;
    color: #f5f5f5 !important;
}

body.dark .left {
    background: #333 !important;
    color: #f5f5f5 !important;
}

body.dark .right h3 {
    color: #f5f5f5 !important;
}

/* Responsibilities Section Dark Mode */
body.dark .responsibilities {
    background: #1a1a1a !important;
}

body.dark .card {
    background: #2c2c2c !important;
    color: #f5f5f5 !important;
}

body.dark .card h3 {
    color: #ffffff !important;
}

body.dark .card p {
    color: #cccccc !important;
}

body.dark .section-subtitle {
    color: #cccccc !important;
}

/* Footer Dark Mode */
body.dark .footer {
    background-color: #1e1e1e !important;
    color: #f5f5f5 !important;
}

body.dark .footer a {
    color: #f5f5f5 !important;
}

/* Buttons Dark Mode */
body.dark .btn.login {
    border: 1px solid #f5f5f5 !important;
    color: #f5f5f5 !important;
}

body.dark .btn.login:hover {
    background-color: #f5f5f5 !important;
    color: #121212 !important;
}

body.dark .btn.signup {
    background-color: #f5f5f5 !important;
    color: #121212 !important;
    border: 1px solid #f5f5f5 !important;
}

body.dark .btn.signup:hover {
    background-color: #121212 !important;
    color: #f5f5f5 !important;
}

/* Dropdown Dark Mode */
body.dark .dropdown {
    background-color: #2c2c2c !important;
    border: 1px solid #444 !important;
}

body.dark .dropdown a {
    color: #f5f5f5 !important;
}

body.dark .dropdown a:hover {
    background-color: #3c3c3c !important;
}