:root{
    --brand:#FF9100;
    --brand-white: #ffffff;
    --brand-black:#08000F;
    --brand-black-rgb: 8,0,15;
    --brand-gray:#BFBFBF;
    --brand-purp:#7200FF;
    --brand-green:#15D19F;
    --brand-yellow:#FFC53B;
    --brand-pink:#FF0092;
    --brand-blue:#5865ED;
    --free-color:#1BD115;
    --bg:#ECECEC;
    --trans: 0.4s;
}

*, ::before, ::after{
    box-sizing: border-box;
}


body{
    direction: rtl;
    font-family: aktiv, Arial;
    margin: 0;
    background: var(--bg);
    background-image:
    linear-gradient(to right, rgba(var(--brand-black-rgb),0.1) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(var(--brand-black-rgb),0.1) 2px, transparent 2px);
    background-size: 55px 55px;
}

h1, h2, h3, p{
    margin: 0;
}

main, section, nav{
    padding: 0 40px;
}

main{
    padding: 60px 40px;
}

.con{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.shelf-title{
    line-height: 0.8;
    font-size: 2.25rem;
}



/* --- NAV --- */
nav{
    display: flex;
    justify-content: center;
    border-bottom: 3px solid var(--brand-black);
    padding: 20px;
    background: var(--brand-white);
}

#logo{
    display: flex;
    align-items: center;
}

#logo svg{
    height: 60px;
}

#logo svg *{
    transition: 0.2s ease;
}

#logo:hover svg *{
    fill: var(--brand) !important;
}



/* --- Course-Shelf --- */
.course-shelf{
    margin-bottom: 90px;
}

.course-shelf-items{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    column-gap: 60px;
}

.course-item{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    cursor: pointer;
    color: var(--brand-black);
    text-decoration: none;
    max-width: 300px;
}

.course-image{
    border: 4px solid var(--brand-black);
    position: relative;
    transition: var(--trans);
    top: 0px;
    left: 0px;
}

.course-image::before{
    content: "";
    position: absolute;
    inset: 0;
    border: 4px solid var(--brand-black);
    background: var(--brand-gray);
    z-index: -1;
    transition: var(--trans);
}

.course-item:hover .course-price,
.course-item:hover .course-image{
    top: -12px;
    left: -12px;
}

.course-item:hover .course-image::before{
    transform: translate(12px, 12px);
}

.course-image img{
    display: block;
    width: 100%;
}

.course-price{
    position: relative;
    transition: var(--trans);
    top: 0px;
    left: 0px;
    transform: translate(30px , 30px);
    z-index: 5;
    padding: 3px 15px 0px 15px;
    background: var(--brand-white);
    border: 3px solid var(--brand-black);
    font-weight: 600;
}

.free-course .course-price{
    background: var(--free-color);
}

.course-title{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
}

.course-title h2,
.course-title h3{
    padding: 3px 15px 0px 15px;
    background: var(--brand-white);
    border: 3px solid var(--brand-black);
    position: relative;
    top: 0px;
    left: 0px;
    transition: var(--trans);
    transition-delay: 0.07s;
}

.course-item:hover .course-title h3,
.course-item:hover .course-title h2{
    top: -9px;
    left: -9px;
}

.course-title h3::before,
.course-title h2::before{
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--brand-black);
    background: var(--brand-gray);
    z-index: -1;
    transition: var(--trans);
    transition-delay: 0.07s;
}

.course-item:hover .course-title h3::before,
.course-item:hover .course-title h2::before{
    transform: translate(9px, 9px);
}

.course-title h2,
.course-title h3{
    font-size: 1rem;
    font-weight: 500;
}



/* --- Slogan --- */
.slogan{
    padding: 3px 25px 0px 25px;
    background: var(--brand-white);
    border: 3px solid var(--brand-black);
    position: relative;
    top: 0px;
    left: 0px;
    transition: var(--trans);
    justify-self: center;
    text-align: center;
    cursor: default;
    font-size: 1.25rem;
    font-weight: 500;
}

.slogan::before{
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--brand-black);
    background: var(--brand-gray);
    z-index: -1;
    transition: var(--trans);
}

.slogan:hover{
    top: -9px;
    left: -9px;
}

.slogan:hover::before{
    transform: translate(9px, 9px);
}



/* --- Footer --- */
footer{
    display: flex;
    justify-content: center;
    border-top: 3px solid var(--brand-black);
    padding: 20px;
    background: var(--brand-white);
    min-height: 110px;
}

.sm-con{
    display: flex;
    align-items: center;
    gap: 15px;
}

.sm-con p{
    font-size: 1.15rem;
    font-weight: 500;
}

.sm-btns{
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    position: relative;
    z-index: 2;
}

.sm-btn{
    display: flex;
    align-items: center;
    padding: 9px;
    background: var(--brand-white);
    border: 3px solid var(--brand-black);
    position: relative;
    top: 0px;
    left: 0px;
    transition: var(--trans);
    cursor: pointer;
}

.sm-btn::before{
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--brand-black);
    background: var(--sm-btn-color);
    z-index: -1;
    transition: var(--trans);
}

.sm-btn:hover{
    top: -8px;
    left: -8px;
}

.sm-btn:hover::before{
    transform: translate(8px, 8px);
}

.sm-btn svg{
    width: 24px;
    height: 24px;
}

.sm-btn:nth-child(1){
    --sm-btn-color: var(--brand-green);
}
.sm-btn:nth-child(2){
    --sm-btn-color: var(--brand-gray);
}
.sm-btn:nth-child(3){
    --sm-btn-color: var(--brand);
}
.sm-btn:nth-child(4){
    --sm-btn-color: var(--brand-purp);
}
.sm-btn:nth-child(5){
    --sm-btn-color: var(--brand-pink);
}
.sm-btn:nth-child(6){
    --sm-btn-color: var(--brand-yellow);
}
.sm-btn:nth-child(7){
    --sm-btn-color: var(--brand-blue);
}


@media (max-width: 640px){

    h1,h2{
        text-align: center;
    }

    .course-shelf{
        margin-bottom: 150px;
    }

    .course-item{
        max-width: unset;
    }

}




/* - Fonts - */
@font-face {
    font-family: 'aktiv';
    src: url('/font/meduim.woff2') format('truetype');
    font-weight: 400;
    font-display: swap;
  }

@font-face {
    font-family: 'aktiv';
    src: url('/font/semibold.woff2') format('truetype');
    font-weight: 500;
    font-display: swap;
  }

@font-face {
    font-family: 'aktiv';
    src: url('/font/bold.woff2') format('truetype');
    font-weight: 600;
    font-display: swap;
  }