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

body {
  width: 100vw !important;
  background-color: white;
  transition: all 0.3s linear;
}

.search-bar-container {
  text-align: center;
  margin: 2.3rem auto 1.2rem;
  width: 90%;
  max-width: 600px;
}
body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-bar-container input {
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.search-bar-container input:focus{
  border: 2px solid #6962BE;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* Enhanced Main Section */
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.1"/><stop offset="100%" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>')
    center/cover;
  pointer-events: none;
}
.dropdown-toggle::after{
  content: none !important;
  border: none !important;
}

.main h1 {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  animation: slideInDown 1s ease-out;
}

.main p {
  font-size: 1.4rem;
  color: #666;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  animation: slideInUp 1s ease-out 0.3s both;
}

/* Enhanced Course Cards */
.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  padding: 20px 40px 30px;
  max-width: 1400px;
  margin: 0 auto 1rem;
}

.card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 40px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideInUp 0.6s ease-out;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.card-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-content img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card:hover .card-content img {
  transform: rotateY(360deg) scale(1.1); 
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
}

.card-content .price {
  font-weight: 800;
  color: #e74c3c;
  font-size: 2rem;
  margin: 15px 0;
  text-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.card-content del {
  color: #95a5a6;
  margin-left: 15px;
  font-size: 1.2rem;
  font-weight: 500;
}

.card-content p {
  margin: 10px 0;
  color: #7f8c8d;
  font-weight: 500;
  font-size: 1.1rem;
}

.info-btn:hover {
  background: linear-gradient(45deg, #ee7b6e, #c0392b);
 box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.expandable-box {
  position: relative;
  display: inline-block;
  max-width: 400px;
  font-family: sans-serif;
}

.info-btn {
  padding: 8px 12px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.info-content {
  margin-top: 10px;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.expandable-box.active .info-content {
  max-height: 500px; 
  padding: 10px 15px;
}

.discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  animation: pulse 2s infinite;
  z-index: 3;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.syllabus {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin: 20px 0;
  text-align: left;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 0 20px;
}

.card.expanded .syllabus {
  opacity: 1;
  max-height: 250px;
  padding: 20px;
}

.syllabus h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.syllabus ul {
  list-style: none;
  padding: 0;
}

.syllabus li {
  color: #555;
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.syllabus li:last-child {
  border-bottom: none;
}

.syllabus li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  padding: 8px 18px; /* smaller padding */
  margin: 8px;
  font-size: 18px; /* smaller font size */
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  background-image: linear-gradient(to bottom right, #00c6ff, #0072ff);
  border: none;
  border-radius: 40px;
  box-shadow: 0px 4px 0px #0072ff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 0px #0072ff;
}

.button:active {
  transform: translateY(0px);
  box-shadow: none;
  background-image: linear-gradient(to bottom right, #0072ff, #00c6ff);
}

.button:before,
.button:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.button:before {
  top: -3px;
  left: -3px;
  border-radius: 40px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}

.button:after {
  bottom: -3px;
  right: -3px;
  border-radius: 40px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
}

.enroll {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.hidden {
  display: none;
}

/* footer CSS */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: black;
  color: white;
  padding: 20px;
  border-start-start-radius: 10px;
  border-start-end-radius: 10px;
  position: relative;
  padding-bottom: 30px !important;
}

.footer h3 {
  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;
}

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

.footer .contact p {
  margin: 5px;
}

.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 .copy {
  text-align: center;
  margin-top: 20px;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

/* 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;
}

/* Dark Mode Styles */
body.dark {
  background-color: #1a1a1a;
  color: white;
}

body.dark .navbar {
  background-color: #222;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

body.dark .navbar h1,
body.dark .navbar a {
  color: #fff;
}

body.dark .navbar a.btn {
  background-color: #222;
  color: #fff;
  border-color: #fff;
}

body.dark .navbar a.btn:hover {
  background-color: #fff;
  color: #222;
}

body.dark .main {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}

body.dark .main h1 {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .main p {
  color: #bbb;
}

body.dark .card {
  background-color: #2d2d2d;
  color: white;
  border-color: #444;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark .card:hover {
  border-color: #667eea;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

body.dark .card-content h3 {
  color: white;
}

body.dark .card-content p {
  color: #bbb;
}

body.dark .syllabus {
  background: #333;
}

body.dark .syllabus h4 {
  color: white;
}

body.dark .syllabus li {
  color: #ccc;
  border-bottom-color: #444;
}

body.dark .footer {
  background: linear-gradient(135deg, #111 0%, #222 100%);
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main h1 {
    font-size: 2.5rem;
  }

  .main p {
    font-size: 1.1rem;
  }

  .courses-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px;
  }

  .card {
    padding: 30px 20px;
    min-height: 380px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.dark {
  background-color: #121212;
  color: #ffffff;
}

.dark .card {
  background-color: #1e1e1e;
  border-color: #333;
}

.dark .navbar,
.dark .footer {
  background-color: #181818;
}
