*{
    margin: 0px;
    padding: 0px;
}

/* Courses */

#courses .course-container{
    display: flex;
    gap:50px;
    align-items: center;
    margin-left: 107px;
    padding: 80px;
    width: calc(25%);
   
}
#courses .course-container .course-detail{
    position: relative;
}


#courses .course-container .course-detail img{
    width: 308px;
    height: 280px;
}

#courses .course-container .course-detail .course-name h3 {
    color: #072A4D;
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    font-family: "Roboto", serif;
}
a{
    list-style: none;
    text-decoration: none;
    color: #17294D;
}

#courses > .course-container > .course-detail > .course-name > h3 > a:hover{
    color: #F2BE04;
    -webkit-transition: all 0.4s ease-in;
    transition: all 0.4s ease-in;

}

#courses .course-container .course-detail img{
    width: 248px;
    height: 280px;
}

#courses .course-container .course-detail img{
    width: 248px;
    height: 280px;
}
.sale {
    position: absolute;
    top: 10px; /* Top-right corner of the .course-detail div */
    right: 10px;
    background-color: #072A4D;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: bold;
    z-index: 1;
}


/* Media query for devices with max width 768px (mobile view) */
@media (max-width: 768px) {
    .course-container {
        display: flex;
        flex-wrap: wrap; /* Ensures items wrap to the next line */
        gap: 16px; /* Adds spacing between items */
        justify-content: center; /* Centers items */
    }

    .course-detail {
        flex: 1 1 100%; /* Ensures one box per row */
        max-width: 100%; /* Full width for each item */
        box-sizing: border-box; /* Includes padding in width calculations */
        text-align: center; /* Centers the text */
    }

    .course-name h3 {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .sale {
        font-size: 0.9rem; /* Adjust badge size */
    }
    #courses .course-container{
        padding: 0px;
        margin: 0px;
        position: relative;
        left:18%;
    }
}

@media(max-width:600px){
    #copyright{
        display: none;
    }
}

@media(min-width:363px) and (max-width:400px){
    #courses .course-container{
        position: relative;
        left:20%;
    }
} 

@media(min-width:400px) and (max-width:432px){
    #courses .course-container{
        position: relative;
        left:23%;
    }
} 

@media(min-width:432px) and (max-width:470px){
    #courses .course-container{
        position: relative;
        left:26%;
    }
} 

@media(min-width:470px) and (max-width:500px){
    #courses .course-container{
        position: relative;
        left:26%;
    }
} 
@media(min-width:501px) and (max-width:540px){
    #courses .course-container{
        position: relative;
        left:26%;
    }
} 

@media(min-width:540px) and (max-width:570px){
    #courses .course-container{
        position: relative;
        left:26%;
    }
} 


@media(min-width:570px) and (max-width:600px){
    #courses .course-container{
        position: relative;
        left:30%;
    }
} 

