* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to right, #2193b0, #6dd5ed);
    /* Background gradient */
    color: #444;
    min-height: 100vh;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu>li {
    position: relative;
    display: inline;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

nav .menu .active {
    background-color: #555;
    color: white;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #007BFF;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li:hover .submenu {
    display: block;
}

.submenu a {
    padding: 10px 20px;
}

section {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

main {
    background: url('../image/dorocosmo.jpg') center center / cover no-repeat;
    flex: 1;
    padding: 20px;
}

header {
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    /* Adjust size as needed */
    height: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    font-family: 'Roboto', sans-serif;
}

nav {
    display: flex;
    justify-content: center;
}

.menu a:hover {
    background-color: #555;
    border-radius: 5px;
}

.main-nav {
    background-color: #333;
    overflow: hidden;
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav ul li {
    padding: 14px 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.main-nav ul li a:hover {
    background-color: #575757;
}

.labs-bar {
    background-color: #444;
    box-shadow: 0 4px 8px rgba(88, 89, 80, 0.1);
    margin: 20px auto;
    width: fit-content;
    border-radius: 0px;
    position: fixed;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}


.labs-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.labs-bar ul li {
    padding: 10px 20px;
}

.labs-bar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-radius: 4px;
}

.labs-bar ul li a:hover {
    background-color: #555;
    color: white;
}

.labs-bar ul li a.active {
    background-color: #555;
    color: white;
}

.footer {
    background-color: #444;
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px 0;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #f5a623;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #f5a623;
}

.footer-section .social-icons a {
    margin: 0 10px;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color 0.3s;
}

.footer-section .social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-section .social-icons a:hover {
    background-color: #f5a623;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding: 10px 0;
    font-size: 14px;
}

.learning-header {
    background-color: #333;
    color: white;
    padding: 20px;
    border-bottom: 1px solid #444;
    font-family: 'Roboto', sans-serif;
    margin-top: 50px;
}

.learning-header h1 {
    font-size: 4rem;
    margin-top: 0px;
}

.learning-header p {
    font-size: 0.9rem;
    color: #ccc;
}

.watch-time {
    font-weight: bold;
    color: #fff;
}

.divider {
    margin: 0 8px;
    color: #666;
}

.learning-header a {
    color: #bbb;
    text-decoration: none
}

.learning-header a:hover {
    text-decoration: underline;
}

.learning-filters {
    margin-top: 10px;
}

.learning-filters button {
    background: none;
    border: none;
    color: #bbb;
    font-size: 1rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.learning-filters button.active,
.learning-filters button:hover {
    color: white;
    font-weight: bold;
    /* border-bottom: 2px solid white; */
}

/* Styling for the tabs */
.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #ccc;
}

.tab-button {
    padding: 15px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    color: #fff;
    transition: border-bottom 0.3s;
    margin-bottom: 0;
}

.tab-button.active {
    border-bottom: 3px solid #fff;
    font-weight: bold;
}

/* Sort and filter controls styling */
.my-learning-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.sort-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

}

.sort-section select,
.filter-section select {
    width: 150px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sort-section,
.filter-section,
.reset,
.search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-section label,
.filter-section label {
    color: #333;
    font-weight: bold;
}

.my-learning-controls select,
.my-learning-controls input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}

.reset button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.search {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.search input[type="text"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 180px;
}

.search button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}

/* Tab content styling */
.tab-content {
    display: none;
    padding: 10px 0;
    background-color: #fff;
    /* White background for content */
    border-radius: 0%;
    margin-top: 0px;
}

.tab-content.active {
    display: block;
}

.course-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-left: 10px;
}

/* Individual course card styling */
.course-card {
    width: 300px;
    height: 450px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;

    margin-left: 0;
}

/* Card header for image and three dots */
.card-header {
    position: relative;
}

.course-image {
    width: 300px;
    height: 150px;
}

.three-dots {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Course title and author */
.course-title {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px;
}

.course-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* Progress text */
.course-progress {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* Rating stars */
.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: inline-block;
    font-size: 16px;
    color: #ddd;
    /* Default star color */
    position: relative;
}

/* Create the shine effect based on the data-rating attribute */
.stars::before {
    content: "★★★★★";
    color: #ffc107;
    /* Shiny star color */
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: calc(var(--rating, 0) * 20%);
    white-space: nowrap;
    pointer-events: none;
}

/* Adjust the star width based on the rating */
.stars[data-rating="5"]::before {
    width: 100%;
}

.stars[data-rating="4.5"]::before {
    width: 90%;
}

.stars[data-rating="4"]::before {
    width: 80%;
}

.stars[data-rating="3.5"]::before {
    width: 70%;
}

.stars[data-rating="3"]::before {
    width: 60%;
}

.stars[data-rating="2.5"]::before {
    width: 50%;
}

.stars[data-rating="2"]::before {
    width: 40%;
}

.stars[data-rating="1.5"]::before {
    width: 30%;
}

.stars[data-rating="1"]::before {
    width: 20%;
}

.stars[data-rating="0.5"]::before {
    width: 10%;
}

.rating-text {
    font-size: 12px;
    color: #666;
}

.learning-path-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.learning-path-card {
    position: relative;
    width: 600px;
    height: 170px;
    padding: 16px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Spacing between icon and text */
}

.course-icon {
    width: 40px;
    height: 40px;
}

.title-content {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.learning-path-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.three-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

.progress-section {
    margin-top: 20px;
}

.progress {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background-color: #673AB7;
    /* Purple color for the progress fill */
    border-radius: 2px;
}
