﻿:root {
    --primary-color: #2E4395; /* Blue */
    --secondary-color: #F9C51F; /* Yellow */
    --dark-color: #191818;
    --light-color: #FFFFFF;
    --gray-color: #6B6B6B;
    --light-gray: #918E8E;
    --border-radius: 10px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    display: block !important;
    padding-top: 50px;
}

h2 {
    font-size: 31px;
    font-weight: bold;
    margin-bottom: 30px;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* body {
            font-family: Arial, Helvetica, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }       */

/* Header Styles */
.head {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    /* flex-direction: column; */
}

    .head .left {
        width: 60%;
        text-align: left;
    }

    .head .right {
        /* height: 100%; */
        width: 40%;
        text-align: right;
        padding-bottom: 51px;
    }

.right button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 45px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.cost {
    margin: 0 0 10px 0;
}

.section-title {
    font-size: 49px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.course-description {
    width: 70%;
    margin: 0 60px 0 0;
    text-align: justify;
}

.course-subtitle {
    width: 100%;
    max-width: 80%;
    display: flex;
    margin-bottom: 10px;
}

.instructor {
    padding: 10px 0 0 0;
    font-weight: normal;
    width: 100%;
    max-width: 80%;
    display: flex;
    /* font-size: 16px; */
}

/* Video Section */
.video-section {
	margin: 0 0 100px 0;
    position: relative;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .video-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .play-button:after {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-left: 25px solid #333;
        border-bottom: 15px solid transparent;
        margin-left: 5px;
    }

/* Course Info Section */
.course-info {
    display: flex;
    width: 100%;
    /* max-width: 80%; */
}

/* .section-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
        } */

.course-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-description p {
    margin-bottom: 15px;
    text-align: justify;
}

/* What You'll Learn Section */
.what-youll-learn {
    margin: 40px 0;
}

    .what-youll-learn img {
        width: 100%;
    }

/* Instructor Section */
.instructor-section {
    width: 100%;
    height: auto;
    margin: 40px 0;
}

    .instructor-section img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

.instructor-profile {
    background: url(../assets/images/HTTL2.png) no-repeat center center / cover;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}



    .other-courses h2 {
        font-size: 32px;
        font-weight: 700;
        color: var(--primary-color);
        text-align: center;
    }

/*@media screen and (min-width: 768px) {
            .instructor-profile {
                flex-direction: row;
            }
        }
        
        .instructor-image {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            overflow: hidden;
            margin-bottom: 20px;
        } */

/*@media screen and (min-width: 768px) {
            .instructor-image {
                margin-right: 30px;
                margin-bottom: 0;
            }
        } */

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.instructor-credentials p {
    margin-bottom: 8px;
}

.instructor-bio {
    margin-top: 15px;
}

/* Other Courses Section */
.other-courses {
	width: 30%;
    /* margin: 40px 0; */
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.course-card {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
}

.course-card-image {
    /* height: 200px; */
    overflow: hidden;
}

    .course-card-image img {
        width: 100%;
        margin-bottom: 10px;
        height: 100%;
        object-fit: cover;
    }

.course-card-content {
    padding: 25px;
}

.course-card-title {
font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-card-date {
    font-size: 14px;
    color: #575656;
    margin-bottom: 30px;
    padding-left: 35px;
    background: url(../assets/images/calendar.png) left / 25px no-repeat;
}

.course-card-organizer {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    margin-bottom: 10px;
}

.trynow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.organizer-label {
    color: #3F3F3F;
    font-size: 16px;
}

.organizer-name {
    font-weight: bold;
    color: var(--primary-color);
}

.course-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 45px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 1400px) {
    .section-title {
        font-size: 50px;
    }

    .course-subtitle {
        font-size: 20px;
    }

    .instructor {
        font-size: 14px;
    }

    .section-title {
        font-size: 40px;
    }

    .instructor-image {
        width: 200px;
        height: 200px;
    }

    .course-info {
        display: block;
    }

    .course-description {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .other-courses {
        width: 100%;
        max-width: 100%;
        margin: 50px 0;
        padding: 0;
    }
}

@media screen and (max-width: 1200px) {
    .section-title {
        font-size: 40px;
    }

    .course-subtitle {
        font-size: 18px;
    }

    .instructor {
        font-size: 14px;
    }

    .section-title {
        font-size: 36px;
    }

    .instructor-image {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 1000px) {
    .section-title {
        font-size: 36px;
    }

    .course-subtitle {
        font-size: 16px;
    }

    .instructor {
        font-size: 14px;
    }

    .section-title {
        font-size: 32px;
    }

    .instructor-image {
        width: 160px;
        height: 160px;
    }
}

@media screen and (max-width: 768px) {
    .head {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    h2 {
        font-size: 24px;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .video-section {
         margin-bottom: 50px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .course-subtitle {
        font-size: 18px;
        text-align: start;
        max-width: 100%;
        line-height: 1.6;
    }
	.head .left, .head .right {
		width:100%;
	}
    .section-title {
        font-size: 34px;
        padding-top: 0;
    }

    .instructor-image {
        width: 150px;
        height: 150px;
    }
	.instructor{
		max-width:100%;
	}
	.head .right {
		
		display: block;
		text-align:left;
		align-items: center;
        justify-content: space-between;
	}
	.head .right  .cost {
		margin:0 0 10px;
	}
}
