* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/*----------------------------------------------------header-------------------------*/
header {
  background: #ffffff;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 10px;
  font-size: 10px;
  font-weight: bold;
  color: #333;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-size: 20px;
  font-weight: 900;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #5849c4;
}

.nav-links, .menu-icon {
  margin-left: auto;
}

.nav-links.active {
  transform: translateX(0);
}

/* Menu icon */
.menu-icon {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.bar1, .bar2, .bar3 {
  width: 30px;
  height: 3px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: rotate(45deg) translate(-6px, -6px);
}

.enroll-btn {
  background: #ff0000;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.enroll-btn:hover {
  background: #a70000;
  color: white;
}

.enroll-btn a:hover {
  color: white;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 12px;
  margin-left: 5px;
  display: inline-block;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1100;
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/*--------------------------------------------------footer-----------------------------*/
.container2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Newsletter Section */
.newsletter-section {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.newsletter-left {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.owl-image {
  width: 150px;
  margin-right: 20px;
  border-radius: 5%;
}

.newsletter-info h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter-info p {
  color: #555;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form button {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background-color: #a70000;
}

/* Footer */
footer {
  padding: 50px 0;
  background-color: #f5f0ff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
  padding-left: 20px;
}

.rainbow-logo {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ff0066, #ff6b00, #ffcc00, #33cc33, #0066ff, #6600ff, #cc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 400%;
  animation: rainbowAnimation 5s ease infinite;
}

@keyframes rainbowAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-desc {
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ff0000;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: #a70000;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #7b5df9;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #555;
}

.contact-icon {
  margin-right: 10px;
  color: #333;
  min-width: 20px;
  text-align: center;
}

.contact-text {
  line-height: 1.5;
}

.contact-text strong {
  display: block;
  color: #333;
  margin-bottom: 3px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff0000;
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 100;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #a70000;
  transform: translateY(-3px);
}

/* ---------------------- Media Queries for Header & Footer ---------------------- */

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
  footer .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
  }
  
  .social-links {
      justify-content: center;
  }
  
  .footer-logo,
  .footer-links,
  .contact-info {
      width: 100%;
      padding: 10px 0;
  }
  
  .contact-item {
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 15px;
  }
  
  .contact-icon {
      margin-bottom: 5px;
  }
  
  .contact-text {
      text-align: center;
  }
  
  .back-to-top {
      width: 30px;
      height: 30px;
      bottom: 10px;
      right: 10px;
  }
}

/* Small Devices (max-width: 575px) */
@media (max-width: 575px) {
  .logo {
      font-size: 16px;
  }
  
  .logo img {
      height: 35px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  header {
      padding: 0.8rem 1rem;
  }
  
  .logo {
      font-size: 18px;
  }
  
  .logo img {
      height: 40px;
  }
  
  .menu-icon {
      display: block;
      z-index: 1010;
  }
  
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      width: 250px;
      background: white;
      flex-direction: column;
      padding-top: 80px;
      transition: 0.5s;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      gap: 0;
  }
  
  .nav-links.active {
      right: 0;
  }
  
  .nav-links a {
      margin: 10px 20px;
      font-size: 1rem;
  }
  
  .enroll-btn {
      margin: 15px 20px;
  }
}

/* Small-Medium Screens (max-width: 991px) */
@media (max-width: 991px) {
  .logo {
      font-size: 20px;
  }
  
  .logo img {
      height: 45px;
  }
  
  .nav-links a:not(.enroll-btn) {
      font-size: 0.9rem;
  }
  
  .enroll-btn {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
}

/* Medium Screens (max-width: 1200px) */
@media (max-width: 1200px) {
  nav {
      padding: 0 1.5rem;
  }
  
  .logo {
      font-size: 22px;
  }
  
  .logo img {
      height: 50px;
  }
  
  .nav-links {
      gap: 1.5rem;
  }
}

/* Large Screens (min-width: 1201px) */
@media (min-width: 1201px) {
  .nav-links {
      gap: 2.5rem;
  }
}

/* Up to 480px */
@media (max-width: 480px) {
  .newsletter-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .owl-image {
    width: 100px;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .newsletter-info h2 {
    font-size: 20px;
  }

  .newsletter-info p {
    font-size: 14px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 5px;
    margin: 5px 0;
   
  }
}

/* Up to 575px */
@media (max-width: 575px) {
  .newsletter-info h2 {
    font-size: 22px;
  }

  .owl-image {
    width: 110px;
  }
}

/* Up to 768px */
@media (max-width: 768px) {
  .newsletter-section {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 5px;
    margin: 5px 0;
  }
}

/* Up to 991px */
@media (max-width: 991px) {
  .newsletter-info h2 {
    font-size: 24px;
  }

  .newsletter-info p {
    font-size: 15px;
  }
}

/* Up to 1200px */
@media (max-width: 1200px) {
  .newsletter-section {
    padding: 20px 0;
  }

  .owl-image {
    width: 130px;
  }

  .newsletter-form {
    max-width: 100%;
  }
}

/* From 1201px and up */
@media (min-width: 1201px) {
  .newsletter-info h2 {
    font-size: 30px;
  }

  .newsletter-form input {
    font-size: 18px;
  }

  .newsletter-form button {
    font-size: 18px;
  }
}