@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

body.page-template-course {
    margin: 0;
    font-family: "Tajawal", sans-serif !important;
    background-color: #EFE3D3;
}

body.page-template-course .nav {
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(12px);
    border-radius: 2px;
    z-index: 100;
}

body.page-template-course .site-footer {
    a:not(.btn):not(.link) {
        color: #021826;
    }

    background: transparent;

    p {
        color: #021826;
    }

    .sm-links {
        a {
            background-color: #021826;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;

            &:hover {
                i {
                    color: #f1e7d9;
                }
            }
        }
    }
}


.course-btn {
    background-color: transparent;
    border: 1px solid #021826;
    color: #021826;

    &:hover {
        background-color: #00000026;
    }
}

/* Course Hero Section */
.course-hero-sec {
    padding-top: 6rem;

    .bg-wrap {
        overflow: hidden;
        height: 560px;
        border-radius: 8px;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background-color: #0000004D;
            z-index: 2;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 1;
        }

        .corse-main-title {
            font-weight: 700;
            font-size: 64px;
            line-height: 120%;
            text-align: center;
            color: #FFFFFF;
            position: absolute;
            z-index: 3;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-family: "Tajawal", sans-serif !important;
        }
    }
}

.py-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Courses Section */
.courses-sec {
    .course-wrap {
        padding-bottom: 2rem;

        .course-content {
            padding-inline-end: 1rem;
            padding: 1rem;

            .course-title {
                font-family: "Tajawal", sans-serif !important;
                font-weight: 700;
                font-size: 24px;
                line-height: 120%;
                color: #021826;
                margin: 0;
            }

            .course-des {
                font-weight: 400;
                font-size: 18px;
                line-height: 140%;
                color: #315973;
                margin: 1rem 0;
            }
        }

        .video-box {
            padding-inline-start: 1rem;
			
			iframe {
				width: 100%;
				height: 335px;
			}

            .video-link {
                display: block;
                text-decoration: none;

                .video-wrap {
                    position: relative;
                    height: 335px;
                    overflow: hidden;
                    border-radius: 8px;

                    &::after {
                        content: "";
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 0;
                        left: 0;
                        background-color: #0000004D;
                        z-index: 2;
                    }

                    img {
                        width: 100%;
                        height: 100%;
                        position: relative;
                        z-index: 1;
                        object-fit: cover;
                    }

                    i {
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        z-index: 3;
                        transform: translate(-50%, -50%);
                        color: #FB936F;
                        font-size: 50px;
                    }
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .course-hero-sec {
        padding-top: 6rem;

        .bg-wrap {
			height: 350px;
            img {
                width: 100%;
                height: 100%;
            }

            .corse-main-title {
                font-size: 36px;
            }
        }
    }

    .courses-sec {
        .course-wrap {
            .video-box {
                order: 1;
                padding: 0;

                .video-link {
                    .video-wrap {
                        height: 200px;
                    }
                }
            }

            .course-content {
                order: 2;
                padding: 1rem 0;

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

                .course-des {
                    font-size: 16px;
                }

                .course-btn {
                    justify-content: center;
                    width: 100%;
                }
            }
        }
    }
}