:root{
    --heading-font:'helvetica';
    --body-font:'Montserrat', sans-serif;
    --dark-green:#06580C;
    --light-green:#098A1F;
    
}
body{
    margin:0;
    padding:0;
    box-sizing: border-box;
    overflow-x: hidden;
}

main{
    background-color: var(--light-green);
    height:auto;
}

nav{ 
    display:flex;
    width:90vw;
    justify-content: space-between;
    padding:20px 5vw 20px 5vw;
    padding-top: 20px;
    background-color: white;
    position:fixed;
}

.logo{
    width:250px;
}

.logo img{
    width:100%;
}

.login{
    display:flex;
    align-items: center;
}

.login a{
    text-decoration: none;
    display: block;
    background-color: var(--dark-green);
    padding: 15px 35px 15px 35px;
    border-radius: 100px;
    font-family: var(--heading-font);
    font-weight: bold;
    color:white;
    font-size: 1rem;
}

.custom-shape-divider-top-1694694202 {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1694694202 svg {
    position: relative;
    display: block;
    width: calc(110% + 1.3px);
    height: 31px;
}

.custom-shape-divider-top-1694694202 .shape-fill {
    fill: #098A1F;
}

.main-heading{
    text-align: center;
    font-family: var(--heading-font);
    font-size: 2rem;
    color:white;
    padding:50px 0 70px 0px;
    background-image: url('assets/bg_image.png');
    height:500px;
    background-position-y:40%;
}


/*FILTER*/

.filtering{
    display:flex;
    flex-direction: column;
    height:auto;
    justify-content: center;
    align-items: center;

}

.filter-intro{
    font-family: var(--body-font);
    font-size: 1.5rem;
    width:85%;
    margin-top:70px;
    margin-bottom: 20px;
    text-align: center;
}
.dropbtn {
    background-color: var(--dark-green);
    color: white;
    padding: 16px;
    font-size: 1.5rem;
    font-family: var(--heading-font);
    font-weight: bold;
    border: none;
    cursor: pointer;
    width:300px;
    border-radius: 10px;
    margin-bottom: 30px;
    
  }
  
  #search-input {
    box-sizing: border-box;
    background-image: url('assets/searchicon.png');
    background-position: 14px 12px;
    background-repeat: no-repeat;
    font-size: 16px;
    padding: 14px 20px 12px 70px;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: var(--body-font);
    width:100%;
  }
  
 
  #search-input:focus {outline: 3px solid #ddd;}
  

  .filter-dropdown {
    position: relative;
    display: inline-block;
  }
  
 
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f6f6f6;
    min-width: 298px;
    border: 1px solid #ddd;
    z-index: 1;
    margin-top: -32px;
  }
  

  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: var(--body-font);
  }

  .dropdown-content a:hover {
    background-color: var(--light-green);
    color:white;
}
  
  .show {display:block;}


/* COURSE SECTION */

.course-container{
    padding: 50px 0 50px 0;
    width:100vw;
    height:auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:30px;
}

.course-card{
    width:500px;
}

.course-image{
    width:100%;
    height:300px;
    background:darkgrey;
}

.course-image img{
    width:100%;
    height:300px;
}

.course-title{
    font-family: var(--heading-font);
    font-weight: bold;
    
}

.description-truncated {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.course-description, .course-price{
    font-family: var(--body-font);
}

.course-buttons{
    display:flex;
    justify-content: space-between;
}

.find-out-more-button{
    text-decoration: none;
    display: block;
    background-color: var(--dark-green);
    padding: 15px 0 15px 0;
    border-radius: 10px;
    font-family: var(--heading-font);
    font-weight: bold;
    color:white;
    font-size: 1rem;
    width:45%;
    text-align: center;
}

.buy-now-button{
    text-decoration: none;
    display: block;
    background-color: var(--light-green);
    padding: 15px 0 15px 0;
    border-radius: 10px;
    font-family: var(--heading-font);
    font-weight: bold;
    color:white;
    font-size: 1rem;
    width:45%;
    text-align: center;
}


/*FOOTER*/

footer{
    display: flex;
    padding:0 50px;
    background-color: var(--dark-green);
    height:300px;
    align-items: center;
    justify-content: space-between;
}

footer h3{
    font-family: var(--heading-font);
    color:white;
    font-size: 1rem;;
}
footer p{
    font-family: var(--body-font);
    color:white;
    font-size: 1rem;
}

footer a{
    text-decoration: none;
    display: block;
    background-color: var(--light-green);
    padding: 15px 0 15px 0;
    border-radius: 10px;
    font-family: var(--heading-font);
    font-weight: bold;
    color:white;
    font-size: 1rem;
    width:200px;
    text-align: center;
}

@media only screen and (max-width: 550px) {
    .logo{
        width:50%;
    }

    .login a{
        text-decoration: none;
        display: block;
        background-color: var(--dark-green);
        padding: 5px 25px 5px 25px;
        border-radius: 100px;
        font-family: var(--heading-font);
        font-weight: bold;
        color:white;
        font-size: 1rem;
    }

    .filtering{
        display:flex;
        flex-direction: column;
        height:auto;
        justify-content: center;
        align-items: center;
    
    }

    .filter-intro{
        font-family: var(--body-font);
        font-size: 1rem;
        width:90%;
        margin-top:70px;
        margin-bottom: 20px;
    }

    .course-container{
        padding: 50px 0 50px 0;
        width:90vw;
        height:auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap:30px;
        margin-left: 5vw;
        margin-right:5vw;
    }

    footer{
        display:flex;
        flex-direction: column;
        justify-content: space-evenly;
    }
  }



  /* MAIN COURSE PAGE courseid.html */

  .course-wrapper{
    background-color: var(--light-green);
    height:auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap:50px;
    padding:150px 0 50px 0;
  }

  .course-image-large{
    width:40%;
    min-width: 500px;
    height:40vw;
    max-height: 500px;
    /* background:darkgray; */
  }

  .course-image-large img{
    width:100%;
  }

  .course-content-large{
    width:40%;
    min-width: 500px;
  }

  .course-header{
    font-size: 2rem;
    color:white;
    font-family: var(--heading-font);

  }

  .course-header h2{
    margin-top:0px;
  }

  .course-content-large .course-description{
    color:white;
  }

  .course-content-large .course-price{
    color:white;
    font-weight: bold;
  }

  .course-content-large .buy-now-button{
    background-color: #06580C;
  }

  @media only screen and (max-width: 550px) {
 
    .course-image-large{
        width:80vw;
        min-width: 300px;
        aspect-ratio: 1/1;
        /* background:darkgray; */
      }
    
      .course-content-large{
        width:80vw;
        min-width: 300px;
        
        
      }
    
      .course-header{
        font-size: 2rem;
        color:white;
        font-family: var(--heading-font);
    
      }
    }