* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
  }
  
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #ffffff;
    box-shadow: 0 3px 2px rgba(12, 12, 12, 0.1);
    position: relative;
    z-index: 10;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 1px;
  }
  
  .logo img {
    width: 120px;
    height: 90px;
  }
  
  .brand {
    font-family: 'Stencil', 'Impact', sans-serif;
    font-size: 2rem;
    color: #1b1b1b;
  }
  
  nav {
    display: flex;
    gap: 1.5rem;
  }
  
  nav a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #393939;
    transition: color 0.3s ease;
    margin-right: 10px;
  }
  
  nav a:hover {
    color: #000;
  }
  
  .actions {
    display: flex;
    gap: 0.75rem;
  }
  
  .actions a {
    text-decoration: none;
  }
  
  .actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  .login-btn {
    background: transparent;
    font-size: 1.3rem;
    color: #161549;
    font-weight: bold;
    padding: 0.6rem 0.6rem;
  }
  
  .register-btn {
    background: #161549;
    font-size: 1.3rem;
    color: white;
    padding: 0.6rem 0.6rem;
  }
  
  
  
  
  
  /* === E-Courses Dropdown === */
  .dropdown {
    position: relative;
  }
  
  .dropdown:hover .dropdown-menu {
    display: grid;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    min-width: 520px;
    border-radius: 6px;
    z-index: 100;
  }
  
  .dropdown-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }
  
  .dropdown-menu a {
    padding: 0.5rem;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
  }
  
  .dropdown-menu a:hover {
    background-color: #f0f0f0;
  }
  
  
  /* === Internship Dropdown === */
  .dropdownn {
    position: relative;
  }
  
  .dropdownn:hover .dropdownn-menu {
    display: block;
  }
  
  .dropdownn-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 180px;
    border-radius: 6px;
    z-index: 100;
  }
  
  .dropdownn-menu a {
    display: block;
    padding: 0.6rem 0.8rem;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.3s ease;
  }
  
  .dropdownn-menu a:hover {
    background-color: #f5f5f5;
  }
  
  
  /* === Common Styles === */
  .arrow {
    font-size: 0.7rem;
    margin-left: 6px;
    vertical-align: middle;
  }
  
  .e-courses-link {
    background: #161549;
    color: white;
    margin-top: -10px;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    text-decoration: none;
  }
  
  .e-courses-link:hover {
    background: transparent;
    color: #161549;
    border: 1px solid #161549;
  }
  
  .internship-link {
    color: #161549;
    padding: 0.4rem 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
  }

/* === Toggle Button (Hamburger Menu) === */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #161549;
  cursor: pointer;
}



  
  .container {
      display: flex;
      flex-direction: row;
      gap: 20px;
      padding: 20px;
  }
  
  .sidebar {
      flex: 0 0 250px;
      background: #f9f9f9;
      padding: 20px;
      border-radius: 8px;
      height: fit-content;
      position: sticky;
      top: 20px;
  }
  
  .sidebar h2, .sidebar h3 {
      margin-bottom: 15px;
  }
  
  .filter-section {
      margin-bottom: 20px;
  }
  
  .filter-section h3 {
      margin-bottom: 10px;
  
  }
  
  .filter-section label {
      display: block;
      margin-bottom: 5px;
  }
  
  .filter-section a {
      color: blue;
      text-decoration: none;
      font-size: 14px;
  }
  
  .course-catalog {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 20px;
      overflow-y: auto;
  }
  
  .course-catalog h2 {
      margin-bottom: 20px;
  }
  
  .courses {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
  }
  
  .course-card {
      background: #fff;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: transform 0.2s ease;
  }
  
  .course-card:hover {
      transform: translateY(-5px);
  }
  
  .course-card img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 6px;
  }
  
  .badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #ff5722;
      color: #fff;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 12px;
  }
  
  .course-card h3 {
      margin: 10px 0;
      font-size: 18px;
  }
  
  .course-card a {
      text-decoration: none; /* Removes underline */
      color: inherit; /* Keeps text color unchanged */
      display: block; /* Makes the entire card clickable */
  }
  
  
  .course-card p {
      font-size: 14px;
      color: #555;
  }
  
  .rating {
      margin-top: 8px;
      font-size: 14px;
      font-weight: bold;
      color: #ff9800;
  }
  



  .logoo {
    width: 150px;  /* Adjust as needed */
    height: auto;  /* Maintains aspect ratio */
  }



  .logoo {
    width: 150px;  /* Adjust as needed */
    height: auto;  /* Maintains aspect ratio */
  }
  
  .footer {
    background-color:#00072D;
    color: #fff;
    padding: 40px 20px;
   
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-column {
    flex: 1 1 30%;
    margin: 20px;
    min-width: 250px;
  }
  
  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 8px;
  }
  
  .footer-column ul li a {
    color: #ccc;
    text-decoration: none;
  }
  
  .footer-column ul li a:hover {
    text-decoration: underline;
    color: #fff;
  }
  

  .contact-section p {
    margin: 6px 0;
    color: #ccc;
  }
  
  .contact-section strong {
    color: #fff;
  }
  
  .social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0;
  margin-top: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

  

  .footer-bottom-full {
    background-color: #00072D;
    color: #ccc;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid #ffffff;
  }
  
  .footer-bottom-left {
    max-width: 60%;
    flex: 1 1 300px;
  }
  
  .policy-links {
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  .policy-links a {
    color: white;
    text-decoration: none;
    margin-right: 8px;
  }
  
  .policy-links a:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  .policy-links span {
    margin: 0 4px;
    color: white;
  }
  
  .footer-bottom-left .copyright {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-bottom-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .app-button {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    background-color: transparent;
  }
  
  .app-icon {
    width: 30px;  /* Adjust size of the icon */
    margin-right: 10px;  /* Space between the icon and text */
    vertical-align: middle;  /* Align icon with text */
}

  .app-button i {
    font-size: 18px;
    margin-right: 8px;
  }
  
  .app-button:hover {
    background-color: #333;
  }



/* ---------------------- MEDIA QUERIES ---------------------- */

/* Mobile (Android/iOS) */
@media (max-width: 768px) {
    header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .logo-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #161549;
    cursor: pointer;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  nav, .actions {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
  }

  nav.active, .actions.active {
    display: flex;
  }

  nav a, .e-courses-link, .internship-link {
    padding: 0.6rem 1rem;
    text-align: left;
    width: 100%;
  }

  .dropdown-menu, .dropdownn-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdownn:hover .dropdownn-menu {
    display: block;
  }

  .login-btn, .register-btn {
    width: 100%;
    text-align: left;
  }

    .container {
        flex-direction: column;
        max-width: 100%;
    }

    .sidebar {
        flex: 1;
        width: 100%;
        position: static;
    }

    .course-catalog {
        order: 1;
    }

    .courses {
        grid-template-columns: repeat(auto-fill, minmax(100%,1fr));
        max-width: 100%;
    }

    .footer {
      padding: 30px 15px;
  }
  .footer-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 0;
  }
  .footer-column {
      width: 100%;
      margin: 15px 0;
  }
  .footer-column h3 {
      font-size: 16px;
  }
  .footer-column ul li {
      margin-bottom: 6px;
  }
  .social-icons {
      justify-content: flex-start;
  }
  .footer-bottom-full {
      flex-direction: column;
      padding: 30px 15px;
      align-items: flex-start;
      gap: 0;
  }
  .footer-bottom-left {
      max-width: 100%;
      margin-bottom: 0;
      padding: 0;
      /* Slight space before buttons */
  }
  .footer-bottom-left * {
      margin: 0 !important;
      /* Force all children to remove margin */
      padding: 0 !important;
      line-height: 1.4;
      /* Optional: tighten line height */
  }
  .footer-bottom-right {
      width: 100%;
      flex-direction: column;
      gap: 10px;
      margin-top: 0;
      padding: 0;
      /* Remove default margin if applied */
  }
  .app-button {
      width: 100%;
      justify-content: center;
      margin-bottom: 10px;
  }
}


/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
  }

  .logo-toggle-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #161549;
    cursor: pointer;
    margin: 0; /* Prevent margin from pushing */
    padding: 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .logo img {
    width: 100px;
    height: auto;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  nav.active {
    display: flex;
  }

  .actions {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }

  .actions.active {
    display: flex;
  }

  .dropdown-menu,
  .dropdownn-menu {
    min-width: 100%;
  }

    .container {
        flex-direction: row;
        max-width: 100%;
    }

    .sidebar {
        flex: 0 0 200px;
    }

    .course-catalog {
        order: 1;
    }

    .courses {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-width: 100%;
    }

    .footer {
      padding: 40px 20px;
  }
  .footer-container {
      flex-wrap: wrap;
      justify-content: space-between;
  }
  .footer-column {
      flex: 1 1 45%;
      margin: 15px 10px;
  }
  .footer-bottom-full {
      padding: 40px 20px;
      flex-wrap: wrap;
      justify-content: space-between;
  }
  .footer-bottom-left {
      flex: 1 1 60%;
  }
  .footer-bottom-right {
      flex: 1 1 35%;
      justify-content: flex-end;
  }
  .app-button {
      font-size: 13px;
  }
  .app-icon {
      width: 26px;
  }
}



/* Laptops */
@media (min-width: 1025px) and (max-width: 1365px) {
    .menu-toggle {
    display: none;
  }

  nav {
    display: flex;
    gap: 1.5rem;
  }

  .dropdown-menu, .dropdownn-menu {
    display: none;
    position: absolute;
  }

  .dropdown:hover .dropdown-menu,
  .dropdownn:hover .dropdownn-menu {
    display: grid;
  }

  .actions {
    display: flex;
  }

    .container {
        flex-direction: row;
    }

    .sidebar {
        flex: 0 0 250px;
    }

    .courses {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .footer {
      padding: 50px 40px;
  }
  .footer-container {
      flex-wrap: nowrap;
  }
  .footer-column {
      flex: 1 1 30%;
      margin: 20px;
  }
  .footer-bottom-full {
      padding: 60px 40px;
      flex-wrap: nowrap;
  }
  .footer-bottom-left {
      max-width: 60%;
  }
  .footer-bottom-right {
      flex-direction: row;
      justify-content: flex-end;
  }
  .app-button {
      font-size: 14px;
      padding: 12px 20px;
  }
}