@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    color: white;
}

body {
    background-color: #000;
}


a {
    text-decoration: none;
    color: white;
    font-size: 15px;
}

ul {
    list-style: none;
}

header {
    background-color: black;
    width: 100%;
    position: fixed;
    z-index: 5;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.logo {
    font-size: 24px;
    color: rgb(177, 165, 142);
    font-weight: 900;
}

.logo span{
    color: green;
}

.nav_links {
    display: flex;
    gap: 50px;
}

.nav_links a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.nav_links a:hover {
    color: rgb(25, 122, 41);
    transform: translateY(-5px);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.login {
    padding: 10px 22px;         
    border-radius: 999px;        
    background-color: rgb(29, 77, 33);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.login:hover {
    background-color: rgb(39, 88, 43);
    transform: translateY(-1px);
}

.login_container {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-right: 30px;
}

.sign_up {
    font-size: 12px;
    color: rgb(160, 160, 160);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.sign_up:hover {
    color: rgb(25, 122, 41);
}

.mobile_menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: black;
    border-top: 1px solid rgb(50, 50, 50);
}

.mobile_menu a {
    font-size: 17px;
}

.mobile_menu a:hover{
    color: rgb(25, 122, 41);
}


.mobile_menu.show {
    display: flex;
}

.menu span {
    font-size: 32px;
    color: white;
}

.menu{
    display: none;
}

.courses{
    background-color: rgb(0, 0, 0);
    min-height:100vh ;
    padding-top: 120px;
}

.course_filters{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.course_difficulty{
    margin-left: 30px;
    display: flex;
    gap: 20px;
}

.course_difficulty button{
    padding: 8px 14px; 
    border-radius: 20px; 
    background: #1d4d21; 
    color: white; 
    border: none; 
    cursor: pointer; 
}

.course_difficulty .active{
     background: #2f8a3c; 
}

#sortCourses {
    padding: 8px 1px;
    background: #000000; 
    color: white; 
    border: 1px solid #2f8a3c; 
    border-radius: 9px; 
    margin-right: 40px;
}

.course_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin:30px 40px;
}

.course {
  background: #121212;
  padding: 20px;
  border-radius: 14px;
  min-height: 180px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, background 0.2s ease;
}


.course:hover{
    background: #1f1f1fc4;
    transform: translateY(-3px);
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.tag.beginner {
  background: #1d4d21;
}

.tag.intermediate {
  background: #7a5c00;
}

.tag.advanced {
  background: #6b1a1a;
}

.footer {
    background-color: rgb(20, 20, 20);
    color: rgb(200, 200, 200);
    padding: 60px 40px 20px;
    width: 100%;
}


.footer_inner_container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}



.footer_container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    flex-direction: column;
    
}

.footer_top h2 {
    font-size: 24px;
    color: rgb(177, 165, 142);
    margin-bottom: 10px;
}

.footer_top span {
    color: rgb(25, 122, 41);
}

.footer_top p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}


.footer_links h3,
.footer_contact h3 {
    font-size: 16px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    text-align: left;
    margin-top: 20px;
}

.footer_links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer_links a {
    font-size: 14px;
    color: rgb(180, 180, 180);
    transition: color .3s ease, transform .3s ease;
}

.footer_links a:hover {
    color: rgb(25, 122, 41);
    transform: translateX(4px);
}

.footer_contact a {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgb(180, 180, 180);
}

.footer_social h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    margin-top: 20px;
}

.footer_social a {
    margin-right: 10px;
    font-size: 22px;
    color: rgb(180, 180, 180);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer_social a:hover {
    color: rgb(25, 122, 41);
    transform: translateY(-3px);
}


.footer_bottom {
    border-top: 1px solid rgb(50, 50, 50);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer_bottom p {
    font-size: 13px;
    color: rgb(140, 140, 140);
}


@media (max-width: 900px) {
    .navigation{
        justify-content: center;
    }

    .menu {
        display: block;
        position: absolute;
        right: 24px;
        cursor: pointer;
    }

    .nav_links,
    .login_container {
        display: none;
    }

    .course_filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .course_difficulty {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .course_difficulty button {
    font-size: 13px;
    padding: 7px 12px;
  }

  #sortCourses {
    margin: 0 auto;
    width: 160px;
  }
  .footer{
        display: flex;
        flex-direction: column;
    }

    .contact{
        padding-bottom: 20px;
    }

    .form_container{
        margin: 0;
    }
    
    .footer_container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer_top p {
        max-width: 100%;
    }

    .footer_links ul {
        align-items: center;
    }
    .footer_inner_container{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    }
    .footer_links h3,
    .footer_contact h3 {
    font-size: 16px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    text-align: center;
    margin-top: 20px;
}
}