body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav.breadcrumbs{
    margin: 20px;
    font-size: 16px;
}

nav.breadcrumbs a{
    color: #007bff;
    margin-right: 5px;
    text-decoration: none;
}

nav.breadcrumbs a:hover{
    text-decoration: underline;
}

.breadcrumbs {
    font-size: 16px;
    margin-bottom: 20px;
    color: black;
}
.breadcrumbs-header {
    background: #f8f9fa; /* Light grey */
    padding: 10px 20px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}
h1 {
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
    margin-bottom: 30px;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#search {
    padding: 10px;
    padding-right: 35px; /* Space for icon */
    width: 200px;
    border-radius: 5px;
}
#search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border:none;
    cursor: pointer;
    padding: 5px;
}
#search-btn i{
    font-size: 16px;
    color: #202020;
}
#search, #filter-level{
padding:10px;
width:200px;
border-radius:15px;
transition: all 0.3s ease-in-out;
}
    
/*add hover and focus effects*/
#search:hover, #filter-level:hover,
#search:focus, #filter-level:focus{
    border-color: black;
    box-shadow: 0 0 5px rgba(9, 123, 255, 0.5);
}

.filters input, .filters select {
    padding: 10px;
    font-size: 16px;
}
/*course-grid*/
.sub-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* Forces 3 columns */
    gap: 25px;
    padding: 30px;
    justify-content: center;
}

@media (max-width: 900px) {
    .sub-course-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr)); /* 2 per row on tablets */
    gap: 20px;
    }
}

@media (max-width: 600px) {
    .sub-course-grid {
    grid-template-columns: repeat(1, minmax(280px, 1fr)); /* 1 per row on smaller screens */
   gap: 15px;
 }
}
.course-icon {
    font-size: 30px;
    color: #007bff;
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
}
.course-card:hover .course-icon {
    color: #6c5ce7; /* Purple */
}
/*course cards*/
.course-card {
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 2px 2px 15px rgba(0, 123, 255, 0.5);
    text-align: center;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin:10px;
}

.course-card:hover{
    transform: scale(1.05);
}
/* Tech Theme */
.tech-theme #search, .tech-theme .filter-level {
    box-shadow: 0 0 10px rgba(40, 88, 122, 0.4);
    border: 2px solid #28587a; /* Footer color */
}
.tech-theme .course-card {
    border-left: 6px solid #28587a;
}

/* Business Theme */
.business-theme #search, .business-theme .filter-level {
    box-shadow: 0 0 10px rgba(45, 114, 32, 0.5);
    border: 2px solid #2d7220;
}
.business-theme .course-card {
    border-left: 6px solid #2d7220;
}

/* Language Theme */
.language-theme #search, .language-theme .filter-level {
    box-shadow: 0 0 10px rgba(123, 46, 114, 0.5);
    border: 2px solid #7b2e72;
}
.language-theme .course-card {
    border-left: 6px solid #7b2e72;
}

/* Personal Productivity Theme */
.personal-theme #search, .personal-theme .filter-level {
    box-shadow: 0 0 10px rgba(129, 49, 163, 0.5);
    border: 2px solid #8131a3;
}
.personal-theme .course-card {
    border-left: 6px solid #8131a3;
}

/* Highly Demanded Theme */
.demanded-theme #search, .demanded-theme .filter-level {
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
    border: 2px solid #c0392b;
}
.demanded-theme .course-card {
    border-left: 6px solid #c0392b;
}

.filters input[type="text"],
.filters select,
.filters button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 16px;
}

/* For small screens */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters .search-container {
        width: 100%;
        justify-content: center;
    }

    .filters input[type="text"] {
        flex: 1;
        margin-right: 5px;
    }

    .filters select {
        width: 100%;
    }

    .filters button {
        padding: 8px 10px;
    }
}

.course-card h3{
    font-size: 18px;
    color: #333;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding: 12px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Ensure all headings stay black */
h1, h2, h3, h4, h5, h6 {
    color: black !important;
}

.tech-theme {
    background: #e0f2ff;
    color: #fff;
}

.business-theme {
    background: #dfffe0;
    color: #fff;
}

.language-theme {
    background: #ffe5f2;
    color: #fff;
}

.personal-theme {
    background: #f3e3ff;
}

.demanded-theme {
    background: #ffe8d5;
    color: #fff;
}

/* Change Footer */
.tech-theme footer {
    background: #28587a;
}

.business-theme footer {
    background: #2d7220;
}

.language-theme footer {
    background: #7b2e72;
}

.personal-theme footer {
    background: #8131a3;
}

.demanded-theme footer {
    background: #c0392b;
}
header, footer {
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Makes sure the body takes full screen height */
}

.content {
    flex: 1; /* This pushes the footer down */
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x:hidden;
}
/*videos in course cards*/
.video-wrapper {
    margin-top: 15px;
    text-align: center;
  }
  
  .video-thumbnail {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
  }
  
  .video-thumbnail:hover {
    opacity: 0.8;
  }
  
  .video-title {
    font-size: 16px;
    color: #202020;
    margin: 10px 0 5px;
  }
  
  .video-frame {
    display: none;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .video-section {
    margin-top: 10px;
    transition: all 0.3s ease;
  }
/*quiz section*/
.quiz-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.quiz-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}
.quiz-box button {
  margin-top: 10px;
}