*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
  }




  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Remove ALL top/bottom padding */
    background-color: #0d6985;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto; /* Let height be determined by content */
  }
  
  .logo {
    display: flex;
    align-items: center;
    margin: 0; /* Remove ALL margins */
    padding: 0; /* Remove ALL padding */
    line-height: 0; /* Remove line height spacing */
    margin-left: -19px;
  }
  
  .logo img {
    height: 90px; /* Further reduced height */
    margin: 7px; /* Remove ALL margins */
    padding: 0; /* Remove ALL padding */
    vertical-align: top; /* Align to top */
    display: block; /* Block display removes extra space */
    border-radius: 20px;
  }
  
  .logo span {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: #ff9800;
  }
  
  .menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .nav-links a.active-link {
    color: #ff9800;
    font-weight: 600;
}
  




  /* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0d6985;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  right: 0;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #0a546a;
  color: #ff9800;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  color: #ff9800;
}

/* Hide mobile-only links on desktop */
.mobile-only-links {
  display: none;
}




/* hero section */


  .hero-section {
    position: relative;
    width: 100%;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 36, 36, 0.7);
  }
  
  .hero-text {
    position: absolute;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .hero-text p {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .sub-tagline {
    font-size: 1.2rem;
    color: #ffe600;
    margin-top: 5px;
  }
  
/* hero section ends */











.section-title
{
    font-size: 2.5rem;
    color: #0d6985;
    margin-top: 40px;
    font-weight: bold;
    text-align: center;
    
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    text-align: center;
  }
  
  .course-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    /* Add flexbox to control layout */
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all boxes same height */
  }
  
  .course-box:hover {
    transform: translateY(-10px);
  }
  
  .course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .course-details {
    margin-top: 15px;
    /* Make this flex to push button to bottom */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This will take up available space */
  }
  
  .course-name {
    font-size: 1.6rem;
    color: #0d6985;
    font-weight: 600;
  }
  
  .course-description {
    font-size: 1rem;
    color: #666;
    margin: 10px 0;
    /* Remove the flex-grow so description doesn't expand */
    flex-grow: 1; /* This pushes the button to the bottom */

  }
  
  .course-btn {
    background-color: #0d6985;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }
  
  .course-btn:hover {
    background-color: #ff9800;
  }


  .see-more-btn {
    display: inline-block;
    margin-top: auto; /* This pushes the button to the bottom */
    padding: 10px 18px;
    background-color: #0d6985;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-self: center; /* Center the button horizontally */
  }
  
  .see-more-btn:hover {
    background-color: #ff9800;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

















  .footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .footer_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer_about,
  .footer_links,
  .footer_social,
  .footer_newsletter {
    flex: 1 1 220px;
    min-width: 200px;
  }
  
  .footer h2,
  .footer h3 {
    margin-bottom: 10px;
    color: #ff8c00;
  }
  
  .footer_links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer_links li {
    margin: 8px 0;
  }
  
  .footer_links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer_links a:hover {
    color: #fff;
  }
  
  .social_icons a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: brightness(0.8);
    transition: filter 0.3s;
  }
  
  .social_icons a {
    font-size: 20px;
    color: #ccc;
    margin-right: 15px;
    transition: color 0.3s;
  }
  
  .social_icons a:hover {
    color: #ff8c00;
  }
  
  .footer_newsletter input[type="email"] {
    padding: 10px;
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
  }
  
  .footer_newsletter button {
    padding: 10px 20px;
    background-color: #ff8c00;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .footer_newsletter button:hover {
    background-color: #ffa733;
  }
  
  .footer_bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
  }










  .mobile-section-title {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-weight: 600;
    color: #ff9800;
    text-align: left;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Make all dropdown menu items behave similarly */
  .nav-links .dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Special styling for Courses dropdown */
  .courses-dropdown .dropdown-content {
    min-width: 250px;
    left: 0;
    right: auto;
  }
  
  
  
  
  
  
  
  .courses-dropdown .dropdown-content {
    min-width: 250px;
    left: 0;
    right: auto;
  }
  
  /* Mobile Dropdown Styles */
  .mobile-dropdown {
    width: 100%;
  }
  
  .mobile-dropdown-header {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-dropdown-header:hover,
  .mobile-dropdown-header.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff9800;
  }
  
  .mobile-dropdown-header i {
    transition: transform 0.3s ease;
  }
  
  .mobile-dropdown-header.active i {
    transform: rotate(180deg);
  }
  
  .mobile-dropdown-content {
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .mobile-dropdown-content.show {
    display: block;
  }
  
  .mobile-dropdown-content a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 30px; /* Extra padding for sub-menu items */
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff9800;
  }
  


  .magic-syllabus-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  /* Special class for the nav link to ensure proper structure */
  .nav-syllabus-link {
    text-align: left;
    display: inline-flex !important;
  }
  
  * Special class for the nav link to ensure proper structure */
  .nav-syllabus-link {
  text-align: left;
  display: inline-flex !important;
  position: relative; /* Add this to establish positioning context */
  }
  
  .magic-syllabus-container {
  position: relative; /* Add this to create proper positioning context */
  }
  
  .syllabus-crown {
  position: absolute;
  color: #FFD700; /* Gold color for the crown */
  font-size: 0.8em;
  top: -14px; 
  left: 2px; /* More negative value to move further left */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  transform: rotate(-17deg);
  }
  
  /* Add a hover effect to make it more interactive */
  .active-link:hover .syllabus-crown {
  animation: crownGlow 1.5s infinite alternate;
  }
  
  @keyframes crownGlow {
  from {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.7);
  }
  }
  
  /* Ensure the text is positioned correctly */
  .magic-text {
  position: relative;
  margin-left: 5px; /* Add some space after the crown */
  }






  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
  }
  .close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
  }
  .close:hover {
    color: #333;
  }
  .form-group {
    margin-bottom: 15px;
  }
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
  }
  .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
  }
  .form-group input:focus {
    outline: none;
    border-color: #0d6985;
  }
  .error-message {
    color: #f44336;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    display: none;
  }
  .success-message {
    color: #4CAF50;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
    display: none;
  }
  form button {
    width: 100%;
    padding: 10px;
    background-color: #0d6985;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  form button:hover {
    background-color: #ff9800;
  }
  form p {
    margin-top: 15px;
    text-align: center;
  }
  form a {
    color: #0d6985;
    text-decoration: none;
  }
  form a:hover {
    text-decoration: underline;
    color: #ff9800;
  }
  #welcomeUser {
    margin-right: 20px;
    font-weight: bold;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
  }
  #logoutBtn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  #logoutBtn:hover {
    background-color: #d32f2f;
  }
  
  /* .switchToRegister{
    text-decoration: none;
    color: #000;
  } */
  



    /* Google Sign-in Button Styles */
    .google-signin-btn {
      width: 100%;
      padding: 10px;
      margin-top: 10px;
      background-color: white;
      color: #757575;
      border: 1px solid #ddd;
      border-radius: 4px;
      cursor: pointer;
      font-size: 16px;
      transition: background-color 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }
    
    .google-signin-btn i {
      color: #4285F4;
      font-size: 18px;
    }
    
    .google-signin-btn:hover {
      background-color: #f5f5f5;
    }
    
    /* Separator styles */
    .separator {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 20px 0;
    }
    
    .separator::before,
    .separator::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid #ddd;
    }
    
    .separator span {
      padding: 0 10px;
      color: #757575;
      font-size: 14px;
    }
  
  






















  @media (max-width: 768px) 
  {
    .nav-links {
      position: fixed; /* Change from absolute to fixed */
      top: 90px;
      left: 0;
      width: 100%;
      background-color: #0d6985;
      flex-direction: column;
      gap: 0px;
      padding: 0;
      display: flex;
      max-height: 0;
      overflow-y: hidden; /* Initially hidden */
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.4s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      border-radius: 0 0 10px 10px;
      align-items: stretch;
      z-index: 99; /* Ensure it's above other content */
  }
  
  .nav-links.active {
      max-height: 80vh; /* Set to percentage of viewport height */
      opacity: 1;
      transform: translateY(0);
      padding: 15px 0;
      overflow-y: auto; /* Enable scrolling */
  }
  
  .nav-links a {
      padding: 12px 20px;
      display: block;
      text-align: left;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .menu-icon {
      display: block;
  }
  
  /* Show mobile-only links on mobile */
  .mobile-only-links {
      display: block;
      width: 100%;
  }
  
  /* Hide dropdown on mobile */
  .dropdown {
      display: none;
  }
  
  /* Mobile specific link styling */
  .mobile-only-links a {
      color: #fff;
      text-decoration: none;
      font-size: 1.2rem;
      padding: 12px 20px;
      display: block;
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-only-links a:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: #ff9800;
  }


  






      .hero-section {
        position: relative;
        width: 100%;
        height: 30vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }
      .hero-text h1 {
        font-size: 2rem;
      }
    
      .hero-text p {
        font-size: 1.1rem;
      }
    
      .sub-tagline {
        font-size: 1rem;
      }
    
      .hero-buttons {
        flex-direction: column;
      }







      .courses-container {
        display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px;
      padding: 0 8px;
      margin: 0;
      box-sizing: border-box;
      }
    
      .course-box {
        width: 100%;
      }



  /* Hide all dropdowns on mobile */
  .dropdown {
    display: none !important;
  }
  
  /* Keep mobile-only links visible */
  .mobile-only-links {
    display: block;
    width: 100%;
  }







    /* Style for the auth section in mobile view */
    .auth-section {
      width: 100%;
      order: 9999; /* Keep this to ensure it stays at the end */
      margin-top: 0; /* Change from 15px to 0 */
      border-top: none; /* Remove the border that's creating additional space */
      padding-top: 0; /* Remove padding that's creating additional space */
    }
  
    .auth-section #loggedOutView a,
    .auth-section #loggedInView {
      padding: 12px 20px;
      display: block;
      text-align: left;
      width: 100%;
      border-top: 1px solid rgba(255, 255, 255, 0.1); /* Add border to the button itself */
    }
  
    #loggedInView {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    .mobile-dropdown-content {
      margin-bottom: 0;
    }

    .mobile-only-links .mobile-dropdown:last-child .mobile-dropdown-content a:last-child {
      border-bottom: none;
    }
  
    #welcomeUser {
      margin-right: 0;
    }
  
    /* Improve visibility of mobile dropdown headers */
    .mobile-dropdown-header {
      background-color: rgba(13, 105, 133, 0.2);
    }
  
    .mobile-dropdown-header.active {
      background-color: rgba(13, 105, 133, 0.3);
    }
  
    /* Make the navigation menu look better in mobile view */
    .nav-links.active {
      padding-bottom: 0; /* Remove padding at the bottom */
    }
  
    /* Ensure proper stacking of elements in mobile nav */
    .nav-links {
      display: flex;
      flex-direction: column;
    }




  }












  @media (max-width: 480px) {
    .course-name {
      font-size: 1.4rem;
    }
  
    .course-description {
      font-size: 0.9rem;
    }
  }