* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lab4{
    margin-top: 50px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    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;
}

main {
    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;
}

/*lab4*/

.header4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.header4 nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    font-size: 15px;
}

.header4 nav a:hover {
    background-color: #C0C0C0;
    /* Hiệu ứng hover */
}

.welcome-section {
    background-color: #ffffff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.welcome-section .avatar {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin-right: 20px;
}

.welcome-section h1 {
    font-size: 22px;
    font-weight: normal;
    margin: 0;
}

.welcome-section a {
    color: #4a00e0;
    text-decoration: none;
    font-size: 14px;
}

.progress-section {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.progress-section .info-icon {
    position: absolute;
    right: 40px;
    top: 20px;
    font-size: 14px;
    color: #aaa;
    cursor: pointer;
}

.progress-section .streak {
    display: flex;
    align-items: center;
}

.progress-section .streak p {
    margin-left: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.progress-section .streak strong {
    font-size: 16px;
}

.progress-section .current-streak {
    right: auto;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 0.8;
    margin-left: 100px;

}

.progress-section .current-streak img {
    width: 50px;
    height: 50px;
}

.progress-section .current-streak-text {
    display: flex;
    flex-direction: column;
}

.progress-section .current-streak strong {
    font-size: 20px;
    color: #666;
}

.progress-section .current-streak span {
    font-size: 14px;
    color: #666;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

.circular-progress {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    margin-bottom: 20px;

}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: #ff8800;
    /* Orange stroke */
    transition: stroke-dasharray 0.6s ease;
}

.orange {
    stroke: #ff8800;
}

.progress-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.progress-info li {
    margin-bottom: 5px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.orange-dot {
    background-color: #ff8800;
}

.green-dot {
    background-color: #00a88f;
}


.see-activity {
    position: absolute;
    right: 40px;
    bottom: 0px;
    font-size: 14px;
    font-weight: bold;
    color: #4a00e0;
    text-decoration: none;
}

.tabs-section {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.pick-up {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    width: 400px;
    height: 50px;
}

/* Header and Tabs Styling */
.pick-up h1 {
    font-weight: bold;
    font-size: 24px;
    /* Updated font size */
    margin-bottom: 10px;

}

.tabs-section .pick-up a {
    position: absolute;
    right: 50px;
    margin-top: 10px;
    /* Adjust position of "My learning" */
    font-size: 14px;
    color: #4a00e0;
    text-decoration: none;
}

.tabs {
    display: flex;
    margin-bottom: 10px;
}

.tabs button {
    background: none;
    border: none;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.tabs button.active {
    color: #000;
    border-bottom: 2px solid #4a00e0;
    font-weight: bold;
}

.tabs button:hover {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Course Section and Cards Styling */
.course-section {
    padding: 20px 40px;
    background-color: #ffffff;
}

.course-list-wrapper {
    position: relative;
    overflow-x: hidden;
}

.courses {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    /* Allows scrolling for the hidden courses */
    scroll-behavior: smooth;
}

.course {
    display: flex;
    width: 400px;
    /* Each course card width */
    background-color: #ffffff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    height: 220px;
}

.course img {
    width: 150px;
    /* Image width */
    height: 220px;
    margin-right: 10px;
    
}

.course video {
    width: 150px;
    /* video width */
    height: 220px;
    margin-right: 10px;
}

.course-details {
    flex-grow: 1;
    /* Ensure details take the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course p {
    margin: 5px 0;
    font-size: 14px;
    margin-left: 10px;
}

.course strong {
    margin-top: 0px;
}

/* Scroll Button Styling */
.scroll-btn {
    position: absolute;
    right: 10px;
    /* Adjust to put the button at the end */
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    /* Dark background */
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    border-radius: 50%;
    /* Circular shape */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Slight shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Styling the arrow inside the button */
.arrow {
    font-size: 18px;
    display: inline-block;
    transform: rotate(0deg);
    /* Optional: Add slight rotation for the arrow */
}

/* Hover effect for the scroll button */
.scroll-btn:hover {
    background-color: #555;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.recommendation-section {
    padding: 20px;
    background-color: #fff;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recommendation-header h2 {
    font-size: 22px;
    font-weight: bold;
}

.recommendation-header .edit-certification {
    margin-left: auto;
    color: #4a00e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.recommendation-content {
    position: relative;
    display: flex;
    align-items: center;
}

.courses {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    width: 100%;
}

.course-card {
    min-width: 200px;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.course-card img {
    width: 400px;
    height: 250px;
    margin-bottom: 10px;
}

.course-card p {
    margin: 5px 0;
    font-size: 14px;
}

.course-card strong {
    font-weight: bold;
}

/* Scroll Button */
.scroll-btn {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.scroll-btn:hover {
    background-color: #555;
}

/* Personalize Section */
.personalize-section {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
}
.personalize-section h2{
    margin-bottom: 10px;
}
.personalize-section p {
    font-size: 14px;
    margin-bottom: 10px;
}

.personalize-btn {
    width: auto;
    padding: 10px 40px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.personalize-btn:hover {
    background-color: #333;
}
.personalize-section img {
    display: block;
    margin: 0 auto;
  }