/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
}

/* Header Styling */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-weight: 800;
    font-size: 2.5rem;
}

header p a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

/* Navigation Bar */
nav {
    background-color: #444;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding-bottom: 5px;
    font-weight: 600;
    position: relative;
}

nav ul li a.active {
    font-weight: 800;
}

nav ul li a.active::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Sort, Filter, Reset, and Search Bar */
.controls-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 20px;
}

.sort-filter-reset {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-by, .filter-by, .reset-btn {
    display: flex;
    align-items: center;
}

/* Style for dropdowns */
.sort-by select, .filter-by select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

/* Hover and focus effects for dropdowns */
.sort-by select:hover, .filter-by select:hover {
    border-color: #007bff;
}

.sort-by select:focus, .filter-by select:focus {
    border-color: #007bff;
    outline: none;
}

/* Labels for dropdowns */
.sort-by label, .filter-by label {
    margin-right: 10px;
    font-weight: 700;
}

/* Reset button styling */
.reset-btn button {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.reset-btn button:hover {
    background-color: #d1d1d1;
}

/* Search bar styling */
.search-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar input {
    padding: 12px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.search-bar input:hover {
    border-color: #007bff;
}

.search-bar input:focus {
    border-color: #007bff;
    outline: none;
}

.search-bar button {
    padding: 12px 15px;
    background-color: #007bff;
    color: white;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.search-bar button:hover {
    background-color: #0056b3;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* Course List */
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.course-item {
    background-color: white;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    width: 30%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.course-info h2 {
    margin: 10px 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
}

.course-info p {
    margin: 5px 0;
    color: #555;
    font-weight: 600;
}

.rating {
    color: #f39c12;
    font-weight: 600;
}

/* Learning Paths Section */
.learning-paths-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.learning-path-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 45%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.learning-path-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.learning-path-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.learning-path-info p {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: #f0f0f0;
    border-radius: 5px;
    width: 100%;
    height: 8px;
    position: relative;
    margin-top: 10px;
}

.progress {
    background-color: #6200ee;
    height: 100%;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    font-weight: 600;
}
