/*Bu css dosyası coursetemplate.html dosyası içindir, tekli eğitim 
sayfaları için, şimdi rafa kaldırılmış olan courses.html için değil
ona ait olan css dosyası aynı şekilde shelf dosyasında 
oldcoursehtml.css adıyla*/

/*------------------------------COURSE STYLES----------------------*/

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


html{
    font-size: 20px;
}

.top-section{
    background-color: #E8DABD;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.top-part.banner{
    width: 100%;
    height: 60dvh;
    padding: 0;
    margin: 0;
}

.one-course-container{
    width:100%;
    height: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.one-course-container >img{
    width:100%;
    height: 100%;
    padding: 0;
    margin: 0;
    object-fit: cover;
}

.animate{
    position: absolute;
    color: white;
    bottom: 120px;
    left:calc(50% - 200px);
    font-family: CG;
    font-size: 44px;
    opacity: 0;
    animation: fadeIn 2s ease 0.5s forwards;
    width: 400px;
    max-width: 100%;
    text-align: center;
}

/*
.one-course-container{
    display: flex;
    padding: var(--space-5);
    gap: var(--space-3);
    
}*/

.js-fill.content{/*
    background-color: whitesmoke;
    
    border: 2px solid gainsboro;
    box-shadow: 5px 5px 10px gainsboro;*/
    border-radius: 15px;
    padding: var(--space-5) 0;
    max-width: 100ch;
}

.js-section {
    margin-top: 0;
    background-color: whitesmoke;
    position: relative;
    max-width: 100%;
    flex-direction: row;
    gap:15px;
    padding: 0 var(--space-4);
    
}

.fill-list{
    align-self: flex-start;
    margin-left: var(--space-3);
}

li{
    margin: var(--space-2) 0;
}

.vertical-line{
    flex-shrink: 0; 
    width:2px;
    background-color: #c5b18b;
}

.button-rail{
    padding-top:var(--space-5);
    right:0;
    position: sticky;
    width: 150px;
    pointer-events: none;
}

.mobile-only{
    display: none;
}

.course-button{
    background-color: var(--somatik-blue);
    border: 2px solid #15392f;
    border-radius: 15px;
    padding: var(--space-2) var(--space-3);
    height:fit-content ;
    pointer-events:auto;
    box-shadow: 0 0 5px #15392f;
    color: whitesmoke;
}

.sticky-button{
    position: sticky;
    top:90px;
}


@media (max-width: 768px) {

    .one-course-container{
        flex-direction: column;
        padding: 0;
        gap: var(--space-3);
    }
    .mobile-only.course-button{
        display: block;
    }
    .js-section{
        flex-direction: column;
    }
    .sticky-button.course-button{
        display: none;
    }
    
    .button-rail{
        display: none;
    }


    .animate{
        font-size: 40px;
        width: 100%;
        padding: 0 var(--space-2);
        left: 0;
        bottom: 80px
    }

    h1{
        font-size: 28px;
    }

    h2,h3{
        font-size: 20px;
    }
}