/* ===================================
   SINGLE COURSE PAGE
=================================== */

.single-course{
    background:#f8fafc;
}

/* COURSE HEADER */

/* COURSE HEADER */

.course-header{
    padding:50px 0 30px;
    text-align:center;
}

.course-title{
    display:inline-block;

    font-size:42px;
    font-weight:700;
    line-height:1.2;

    color:#ffffff;

    padding:18px 35px;

    background:linear-gradient(
        135deg,
        #003366,
        #0056d2
    );

    border-radius:15px;

    margin-bottom:30px;

    box-shadow:0 10px 30px rgba(0,86,210,.25);

    animation:titleFloat 4s ease-in-out infinite;
}


.course-title{
    position:relative;
    overflow:hidden;
}

.course-title::before{
    content:'';

    position:absolute;
    top:0;
    left:-100%;

    width:50%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.2),
        transparent
    );

    animation:shine 6s infinite;
}

@keyframes shine{

    0%{
        left:-100%;
    }

    40%{
        left:120%;
    }

    100%{
        left:120%;
    }

}



.course-featured-image{
    overflow:hidden;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.course-featured-image img{
    width:100%;
    height:auto;
    display:block;
}

/* CONTENT AREA */

.course-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    padding:20px 0 70px;
}

.course-content{
    background:#fff;
    padding:40px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.course-content h2,
.course-content h3{
    margin-top:25px;
    margin-bottom:15px;
}

.course-content p{
    line-height:1.9;
    color:#555;
}

.course-content ul{
    padding-left:20px;
}

.course-content li{
    margin-bottom:10px;
}

/* SIDEBAR */

.course-sidebar{
    position:sticky;
    top:100px;
    align-self:start;
}

.course-info-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.course-info-card h3{
    margin-bottom:25px;
    color:#003366;
}

.info-item{
    padding:15px 0;
    border-bottom:1px solid #eee;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.info-item span{
    color:#666;
}

.info-item strong{
    color:#111;
}

.enroll-btn{
    display:block;
    width:100%;
    margin-top:25px;

    background:#25D366;
    color:#fff;

    text-align:center;
    padding:15px;

    border-radius:10px;
    text-decoration:none;
    font-weight:600;

    transition:.3s;
}

.enroll-btn:hover{
    transform:translateY(-2px);
}

/* TABLES */

.course-content table{
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}

.course-content table td,
.course-content table th{
    border:1px solid #ddd;
    padding:12px;
}

/* MOBILE */

@media(max-width:991px){

    .course-layout{
        grid-template-columns:1fr;
    }

    .course-sidebar{
        position:relative;
        top:auto;
    }

    .course-title{
        font-size:34px;
    }
}

@media(max-width:768px){

    .course-header{
        padding:25px 0 20px;
    }

    .course-title{
        font-size:26px;
        padding:15px 20px;
    }

    .course-content,
    .course-info-card{
        padding:25px;
    }

    .info-item{
        flex-direction:column;
        align-items:flex-start;
        gap:5px;
    }
}

/* OTHER COURSES */

.other-courses{
    background:#fff;
    margin-top:25px;
    padding:25px;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.other-courses h3{
    margin-bottom:20px;
    color:#003366;
}

.other-course-item{
    margin-bottom:15px;
}

.other-course-item:last-child{
    margin-bottom:0;
}

.other-course-item a{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#111827;
    transition:.3s;
}

.other-course-item a:hover{
    transform:translateX(3px);
}

.other-course-item a:hover span{
    color:#0056d2;
}

.other-course-item img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:10px;
    flex-shrink:0;
}

.other-course-item span{
    font-size:14px;
    font-weight:600;
    line-height:1.4;
}


/* OTHER COURSES - MOBILE FRIENDLY */

@media(max-width:991px){

    .other-courses{
        margin-top:20px;
        padding:20px;
    }

    .other-course-item a{
        gap:10px;
    }

    .other-course-item img{
        width:60px;
        height:60px;
    }

    .other-course-item span{
        font-size:13px;
    }
}