  .body{

    margin:0;
    font-family: Arial, sans-serif;

  }

  .navbar {
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    border-bottom: 1px solid #EEE;
    background-color: #fff;
  }
  .navbar-left {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .navbar-left img {
    height: 70px;
    width: 80px;
  }
  
  .navbar-center {
    display: flex;
    gap: 40px;
  }
  .navbar-center a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    font-size: 16px;
  }
  .navbar-center a:hover,
  .navbar-center a.active {
    font-weight: 500;
    color: #2a9d8f;
  }
  .navbar-right {
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .search-bar {
    padding: 6px 12px;
    border: 1px solid #000000;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
  }
  .search-icon {
    font-size: 18px;
    cursor: pointer;
    color: #999;
  }
  .btn-signup,
  .btn-login {
    padding: 7px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .btn-signup {
    background: transparent;
    border: 1px solid #222;
    background-color: #264653;
    color:white
  }
  .btn-signup:hover {
    background: #2a9d8f;
    color: #fff;
  }
  .btn-login {
    background: #264653;
    color: #fff;
  }
  .btn-login:hover {
    background: #2a9d8f;
  }
  
  .explore-section {
  width: 90%;
  margin: auto;
}
.explore-header {

  align-items: center;
  margin-bottom: 10px;
}
.explore-header h1 {
    
  font-style: bold;
  font-size: large;
  color:#0f4a43;
  font-weight: 800;
  font-size: 2.4rem;
  margin-top: 10px;
}
.explore-header h3{
    margin-bottom: 32px;
    margin-top: -15px;
   line-height: 1.5;

  color:#000000;
  font-weight: 200;
  font-size: 1.2rem;
 
}
.view-all {
  font-weight: 200;
  font-size: 1.2rem;
  color: #176fdb;
  text-decoration: underline;
}
.categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 5px;
}
.category {
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  border-radius: 6px;
  color: #555;
  
}
.category.active {
  background-color: #d4dcff;
  color: #263dfe;
}

.courses-carousel {
  display: flex;
  flex-wrap: wrap;
   align-content: flex-start;     
        
  max-height: 100%;   
  gap: 15px;
}
.course-card {
  max-width: 324px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.1);
  
  background: white;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease-in-out;
  margin-bottom: 10px;
}
.course-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.course-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 12px 6px;
  line-height: 1.2;
}
.course-desc {
  font-size: 0.87rem;
  line-height: 1.2;
  color: #666;
  margin: 0 12px 12px;
  height: 60px;
}




















.main-footer {
  background: #e7f3e4;
  padding: 42px 0 18px 0;
  text-align: center;
  font-size: 1.08rem;
  color: #333;
  margin-top: 0px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.03);
}
.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
}
.footer-logo .footer-title {
  font-weight: bold;
  font-size: 1.38rem;
  color: #1767fa;
  letter-spacing: 1px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #1767fa;
}
.footer-social {
  display: flex;
  gap: 19px;
}
.footer-meta {
  margin-left: 150px;
  font-size: 0.97rem;
  color: #434141;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.footer-social .fa {
  padding: 7px;
  font-size: 38px;
  width: 34px;
  height: 36px;
  text-align: center;
  text-decoration: none;
  color: #333;
  border-radius: 50%;
  transition: background-color 0.3s;
  margin: 3px 6px;
}
.footer-social .fa:hover {
  color: white;
}

.footer-social .fa-facebook { background: #618ae1; }
.footer-social .fa-twitter { background: #55acee; }
.footer-social .fa-instagram { background: #db546d; }
.footer-social .fa-linkedin { background: #5ab8eb; }

.navbar-toggle {
  display: none;
}



/* Small phones and smaller (up to 320px) */
@media (max-width: 351px) {
.navbar {
  margin-left: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 70px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Small phones to larger phones (321px - 425px) */
@media (min-width: 352px) and (max-width: 425px) {
.navbar {
    display: flex;
    
    margin-left: 15px;
    padding: 8px 12px;
  
    justify-content: space-between;
    padding: 10px 20px;
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 100px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 18px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

}

/* Tablets portrait (426px - 768px) */
@media (min-width: 426px) and (max-width: 768px) {
  /* Make navbar a proper flex container */
  .navbar {
     margin-left: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
    position: relative;
  }

  /* Keep navbar-right (search section) aligned right */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons */
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }

  /* Style search bar */
  .search-bar {
    width: 160px;
    font-size: 15px;
    padding: 6px 10px;
    border: 1px solid #000;
    border-radius: 8px;
    outline: none;
  }
    .search-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
  }

  /* Hamburger icon — position to the right of search */
  .navbar-toggle {
    display: block;
    font-size: 22px;
    color: #000;
    cursor: pointer;

    /* position it next to search bar */
    position: absolute;
    right: 20px;   /* stays at far right */
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide center links initially */
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    text-align: center;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }





 
}

/* Tablets landscape & small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Desktop: show buttons only in navbar-right, hide in navbar-center */
@media (min-width: 769px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: inline-block;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Mobile: hide buttons in navbar-right, show in navbar-center */
@media (max-width: 768px) {
 .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }

  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    border-top: 1px solid #eee;
    z-index: 100;
  }

  .navbar-center.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
    cursor: pointer;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }
}

}

/* Desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 50px;
    padding: 12px 18px;
  }
  .navbar-center {
    gap: 40px;
  }
  .search-bar {
    width: 200px;
  }
}

/* Large desktops (1441px and up) */
@media (min-width: 1441px) {
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: none;
  }
  .navbar {
    margin-left: 60px;
    padding: 12px 20px;
  }
  .navbar-center {
    gap: 50px;
  }
  .search-bar {
    width: 220px;
  }
}

/* Responsive Navbar toggle logic */

/* Hide the nav links and show hamburger on smaller screens */

@media (max-width: 768px) {
  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 100;
    border-top: 1px solid #eee;
    padding: 10px 0;
  }
  .navbar-center.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-right {
    margin-right: 10px;
  }
  .navbar {
    flex-wrap: wrap;
    position: relative;
  }
}





@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 120px;
    margin: 0 auto;
  }
  
  .footer-social {
    justify-content: center;
    gap: 12px;
  }
  
  .footer-social .fa {
    font-size: 24px;
    width: 30px;
    height: 29px;
    padding: 5px;
    margin: 3px 4px;
  }
}

/* Tablet landscape and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-content {
    justify-content: center;
    gap: 30px;
  }
  
  .footer-meta {
    margin-left: 0;
  }
  
  .footer-logo .navbar-left img {
    max-width: 140px;
  }
  .footer-social .fa {
    font-size: 25px;
  }
}



body{
  
  padding-bottom: env(safe-area-inset-bottom);

  height: 100%;
}
main{
  flex: 1
;
}


/* ========== Responsive Explore Section and Courses ========== */

/* Small screens (phones, up to 480px) */
@media (max-width: 480px) {
  .explore-header h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .explore-header h3 {
    font-size: 1rem;
    text-align: justify;
    padding: 0 10px;
  }

  .categories {
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
  }

  .category {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .courses-carousel {
    flex-direction: column;
    align-items: center;
  }

  .course-card {
    max-width: 95%;
    width: 95%;
  }

  .course-image {
    height: 160px;
  }

  .course-title {
    font-size: 1rem;
  }

  .course-desc {
    font-size: 0.85rem;
  }
}

/* Tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .explore-header h1 {
    font-size: 2rem;
    text-align: center;
  }

  .explore-header h3 {
    font-size: 1.05rem;
    padding: 0 15px;
    text-align: justify;
  }

  .categories {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .course-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .course-image {
    height: 170px;
  }
}

/* Laptops / small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .explore-section {
    width: 95%;
  }

  .categories {
     flex-wrap: nowrap;        /* Prevent wrapping */
  overflow-x: auto;         /* Allow horizontal scroll */
  overflow-y: hidden;
  scroll-behavior: smooth;
   
    gap: 10px;
  }

  .course-card {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }

  .course-image {
    height: 180px;
  }
}

/* Large desktops (1025px and up) */
@media (min-width: 1025px) {
  .courses-carousel {
    justify-content: flex-start;
  }

  .course-card {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}
/* ---------- Responsive Category Scrolling ---------- */

/* Base improvements */
/* ---------- Universal Horizontal Scrolling for Categories ---------- */


/* Category chip styling (looks neat across all screen sizes) */
.category {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: #f8f8f8;
  color: #555;
  transition: background-color 0.3s, color 0.3s;
}

.category:hover {
  background-color: #e6e6e6;
}

.category.active {
  background-color: #d4dcff;
  color: #263dfe;
}


/* On smaller screens, make categories scroll horizontally and full-width */
@media (max-width: 768px) {
  .categories {
    justify-content: flex-start;
    white-space: nowrap;
    padding: 10px 0;
  }

  .category {
    flex: 0 0 auto;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: #f7f7f7;
  }

  .category.active {
    background-color: #d4dcff;
    color: #263dfe;
  }
}

/* Tablets and up — categories wrap into rows */
@media (min-width: 769px) {
  .categories {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .category {
    flex: 0 1 auto;
  }
}





/* ---------- Universal Horizontal Scrolling for Categories ---------- */

.categories {
  display: flex;
  flex-wrap: nowrap;        /* Keep in one line */
  overflow-x: auto;         /* Enable horizontal scroll */
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 14px;
  padding: 10px 0;
  white-space: nowrap;
  justify-content: flex-start;
  scrollbar-width: thin;          /* Firefox scrollbar */
  scrollbar-color: #c5c5c5 transparent;
}

/* Webkit scrollbar (Chrome, Edge, Safari) */
.categories::-webkit-scrollbar {
  height: 8px;
}
.categories::-webkit-scrollbar-thumb {
  background-color: #c5c5c5;
  border-radius: 10px;
}
.categories::-webkit-scrollbar-track {
  background: transparent;
}

/* Category chip style */
.category {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: #f8f8f8;
  color: #555;
  font-weight: 500;
  transition: all 0.3s ease;
}

.category:hover {
  background-color: #e6e6e6;
}

.category.active {
  background-color: #d4dcff;
  color: #263dfe;
}

/* -------- Optional: Responsive adjustments -------- */

/* For small screens - tighter spacing */
@media (max-width: 600px) {
  .categories {
    gap: 10px;
    padding: 8px 0;
  }
  .category {
    font-size: 0.9rem;
    padding: 8px 14px;
  }
}

/* For very large screens - center the bar if everything fits */
@media (min-width: 1440px) {
  .categories {
    flex-wrap: nowrap;       /* Keep items in one row */
    overflow-x: auto;        /* Always allow horizontal scroll */
    justify-content: flex-start;  /* Keep items left-aligned */
    scrollbar-width: thin;   /* Firefox scrollbar */
    padding: 10px 0;
  }

  /* Webkit scrollbar (Chrome, Safari, Edge) */
  .categories::-webkit-scrollbar {
    height: 6px;
  }

  .categories::-webkit-scrollbar-thumb {
    background-color: #bcbcbc;
    border-radius: 4px;
  }

  .categories::-webkit-scrollbar-track {
    background: transparent;
  }
}



@media (min-width: 769px) and (max-width:1089px) {
  .navbar-right .btn-signup,
  .navbar-right .btn-login {
    display: none;
  }
  .navbar-center .btn-signup,
  .navbar-center .btn-login {
    display: block;
    width: 90%;
    margin: 10px auto;
    text-align: center;
  }

  .navbar-center {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 80px;
    left: 0;
    border-top: 1px solid #eee;
    z-index: 100;
       align-items: center;
    text-align: center;
  }
 .navbar-center a {
    width: 90%;           /* Make links take most of the width */
    margin: 6px 0;        /* vertical spacing between links */
    text-align: center;   /* Center text */
  }
  .navbar-center.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
     position: absolute;
      right: 20px;          /* Align to the right side */
               /* Vertically center relative to navbar */
    
    cursor: pointer;
  }

  .navbar-right {
    display: flex;
    align-items: center;
  }
}

#no-results {
  display:none; 
  text-align:center; 
  margin:20px;
   font-size:1.4em; 
   color:#2a9d8f;
}
