/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background-color: #fff;
    color: #000;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}

/* add-new-course.php */

/* header */

.contact-info, .social-icons {
    display: flex;
    align-items: center;
}
.social-icons a:first-child i{
    padding-left:2em;
    font-size: 18px;
    transition:color .2s ease;
}

.social-icons .fa-youtube{
    transition:color .2s ease;
}

/* navigation.php */
.nav-item .dropdown-menu {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    padding: 10px;
}
.nav-item .dropdown-item:hover {
    background-color: #f1f1f1;
    color: #007bff;
}
.nav-item .dropdown-item[style="font-weight: bold;"] {
    color: #007bff;
    font-weight: bold;
}
.nav-item .dropdown-item {
    padding-left: 10px;
}
#chatbox{
    border:none;
    background-color:rgba(0, 0, 0, 0);
    width:30px;
}
/* index.php search style */
.search-results-box {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #999;
}
@media screen and (max-width:991px) {
    .search-container{
        width:50%;
        margin: 0 auto;
    }
}
/* login.php */
.login-container {
    width:100%;
    margin:0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px 5%;            
}
.login-container .form-group input {
    font-size: 0.8em;
}
.login-container .image-side {
    flex: 1;
    display: flex;
    align-items: center;                    
}
.login-container .image-side img {
    width: 100%;
    height: 465px;
    object-fit: cover;
    border-radius: 10px;
    margin-right:0.8em;
}

.login-container  .form-container {
    flex: 1.2; 
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    overflow-y: auto;
    max-width: 700px;
}
.login-container .form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
} 
.login-container .form-container h3{
    text-align:center;
    padding-top:1.5em;
    font-weight:500;
    font-size:1em;
}
.login-container .form-container #forgot{                        
    padding-top:1.5em;
    font-weight:500;
    font-size:0.9em;
}
.login-container .form-container h4{
    text-align:center;
    padding-top:1.5em;
    font-weight:500;
    font-size:0.9em;
}
.login-container .form-container h4 a{
    color:#007bff;
    transition:.2s ease;
}
.login-container .form-container h4 a:hover {
    color: #0056b3;
}
.login-container .form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.login-container .form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.login-container .form-group input[type="text"],
.login-container .form-group input[type="date"],
.login-container .form-group input[type="tel"],
.login-container .form-group input[type="password"],
.login-container .form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}
.login-container .form-group input:focus {
    border-color: #6c63ff;
}
.login-container .submit-btn {
    background-color: #5fea64;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 20px;
}
.login-container .submit-btn:hover {
    background-color: #45a049;
}
.input_error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

#log-btn {
    background-color: #82f47c ;/* Vibrant teal */
    color: #ffffff ; /* White text for contrast */
    border: none;
    border-radius: 6px ; /* Modern touch */
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle depth */
}

#log-btn:hover {
    background-color: #61fa58; /* Darker teal on hover for emphasis */
}


@media screen and (max-width: 768px) {
    #cat-img {
        height: auto !important;
    }
}
@media (min-width:769px) and (max-width:1200px){
    .login-container {
        width:98%;            
    }
}
@media (min-width:769px) and (max-width:991px){
    .login-container .image-side{
        flex: 1;
        width: 100%;
        margin-right:0.8em;
    }
}

@media (max-width: 768px) {
    .login-container {
        width:95%;
        flex-direction: column;               
    }

    .login-container .image-side{
        display:none;
    }

    .login-container .form-container {
        padding: 20px;
        width: 100%;
    }                 
}

/* register.php */
.register-container {
    width:100%;
    margin:0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    padding: 20px 5%;            
}
.register-container input {
    font-size: 0.9em;
}
.register-container .image-side {
    flex: 1;
    display: flex;
    align-items: center;    
    margin-right:0.8em;                            
}

.register-container .form-container {
    flex: 1.2; 
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    overflow-y: auto; 
    max-width: 700px; 
}
.register-container .form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
} 
.register-container .form-container h4{
    text-align:center;
    padding-top:1.5em;
    font-weight:500;
    font-size:0.9em;
}
.register-container .form-container h4 a{
    color:#007bff;
    transition:.2s ease;
}
.register-container .form-container h4 a:hover {
    color: #0056b3;
}
.register-container .form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.register-container .form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}
.register-container .form-group input[type="text"],
.register-container .form-group input[type="date"],
.register-container .form-group input[type="tel"],
.register-container .form-group input[type="password"],
.register-container .form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}
.register-container .form-group input:focus {
    border-color: #6c63ff;
}
.register-container .submit-btn {
    background-color: #5fea64;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 20px;
}
.register-container .submit-btn:hover {
    background-color: #45a049;
}

@media (min-width:769px) and (max-width:1200px){
    .register-container {
        width:98%;            
    }
}

@media (max-width: 768px) {
    .register-container {
        width:95%;
        flex-direction: column;                
    }

    .register-container .image-side{                
        display:none;
    }            

    .register-container .form-container {
        padding: 20px;
        width: 100%;
    }                    
}

/* courses.php */
.con{
    width:95%;
    margin:0 auto;
}
#course_con{
    display:flex;
    justify-content:space-between;
}        
.search_place{
    display:flex;
    justify-content:space-between;  
    width:100%;      
    margin-top:2em;    
    align-items:start;
}       
.search_place #search_courses form input {
    padding: 0.8em 1em 0.8em 0;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    margin-bottom:1.5em;
    width:100%;
}        
.search_place #search_courses{
    position:relative;
    width:50%;
    padding-left:1em;
}
#search_courses form .fa-magnifying-glass{
    position:absolute;
    top:16%;
    right:0;
}
#search_courses form input::placeholder {
    color: #aaa;
    font-style: italic;
    opacity: 1;
    font-size:0.95em;
}        
.course_check h4 {
    margin-bottom:1.5em;
}
.free_check{
    display:flex;
    justify-content:space-between; 
    padding:0.2em 0;  
}
.free_check div:first-child{
    display:flex;                        
}
.free_check div:first-child h5{
    color: #666060;
    font-weight:500;
    font-size:1.06em;  
    padding-left:1em;          
}        
.course-item {
    box-sizing: border-box;
    width: 100%;
    border-radius:2em 2em 0 0;
}
.col-lg-6, .col-md-6 {
    padding: 0;
}
.row.g-4 {
    margin-left: 0;
    margin-right: 0;
}
.reset{
    padding:0.7em 3em;
    border-radius:2em;
    border:none;
    color:#fff;
    margin-top:1em;       
    background-color: #2eadca;  
    font-size:0.95em;          
    transition:background-color .2s ease;     
}
.reset:hover{
    color:#fff;
    background-color:#14c4ec;
}

@media screen and (max-width:991px){
    .con{
        width:98%;
        margin:0 auto;
    }
    #course_con{
        flex-direction:column;
    }          
    #checking{
        margin-top:2em;
        width:100%;                
    }
    #output_data{
        width:100%;
    }
    .search_place #search_courses{                
        width:80%;
    }
}
@media screen and (max-width:500px){
    .search_place #search_courses{                
        width:95%;
    }
}

/* course_description.php */
#main_description{
    background-color:#430062;
    color:#fff;
    position:relative;
}
#side_description{
    width:93%;
    margin:0 auto;
    padding:1.5em 0 3.5em 0;
}
#side_description h1{
    width:50%;
    font-size:1.9em;    
}
#side_description h4{
    width:60%;
    font-weight:500;
    padding-top:0.8em;
}
#side_description #admin_description{
    width:60%;
    display:flex;
    align-items: center;                
    padding-top:1em;
    z-index:1;
}
#header_overview{
    width:90%;
    margin:0 auto;
    display:flex;
    justify-content: space-between;
    border-bottom:1px solid #c9c6ca;
}
#header_overview a {
    color: #000;
    padding: 1em 0;
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all .2s ease;
}
#header_overview a:hover{
    color:#9003d1;
}
#header_overview a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #9003d1;
    transition: width 0.5s ease;
}
#header_overview a:hover::after {
    width: 100%;
}
#header_overview a i{
    padding-right:0.5em;
}
#admin_description img{
    width:30px;
    height:30px;
    border-radius:50%;
    margin-bottom:0.5em;
}
.admin_create{
    display:flex;
    align-items: center;
    justify-content:center;
}
.admin_create h5:first-child{
    padding-left:1em;
    font-weight:400;
    font-size:0.8em;   
    padding-right:0.5em; 
}
.admin_create h5:last-child{
    padding-right:2rem;                            
}
#admin_description h5:nth-child(3){
    font-weight:400;
    font-size:0.78em;
    padding-right:2rem;
}
#admin_description h5:nth-child(3) i{
    padding-right:0.5em;
}
#admin_description h5:nth-child(4){
    font-weight:400;
    font-size:0.78em;
    padding-right:2rem;
}
#admin_description h5:nth-child(4) i{
    padding-right:0.5em;
}
#admin_description div:nth-child(5){
    font-weight:400;
    font-size:0.78em;
}
#side_description #upload_time{
    display:flex;
    padding-top:1.5em;   
    align-items: center; 
}
#upload_time .fa-calendar-alt{    
    padding-right:0.5em;
    font-size:0.8em;
}
#upload_time h5:nth-child(2){
    font-size:0.76em;
    font-weight:500;
    padding-right:0.5em;
}
#upload_time h5:last-child{
    font-size:0.83em;
}       
#main_section{
    width:90%;
    margin:2em auto;
}
#description_body{
    position:relative;
    width:700px;
    height:auto;
    border-radius:0.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border:none;   
    padding:2em 0;                 
}
#overview_content{
    width:90%;
    margin:0 auto;  
}
#body_overview{
    color:#000;
    width:90%;    
    margin:0 auto;
    padding-top:1.5em;
}
#overview_content_title {    
    margin-bottom: 1em;
    color: #000;
}
.paragraph {
    font-size: 0.95em; 
    line-height: 1.6; 
    margin: 1em auto 2em auto;         
    color: #555;        
    max-width: 800px;      
    overflow-wrap: break-word;
    text-align:justify;
}
.learn_list {
    list-style-type: none; 
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 3em;
}
.learn_list li {
    font-size: 0.95em;
    color: #444;
    margin: 0.5em 0;
    position: relative;
    padding-left: 1.5em;
}
.learn_list li::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #007bff; /* Circle color */
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.5em;
    z-index: 1;
}
.learn_list li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: #ccc;
    z-index: 0;
}
.requirements_list {
    list-style-type: none;
    padding-left: 1.5em;
}
.requirements_list li {
    font-size: 0.95em;
    color: #555;
    margin: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
}
.requirements_list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1px solid #000;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.5em;
    background-color: transparent;
}

/* Main instructor content section */
#instructor_content {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 0.5em; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px; 
}
.instructor_profile {
    display: flex;
    align-items: center; 
    margin-top: 20px; 
    padding: 20px; 
    background-color: #ffffff; 
    border-radius: 0.5em; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
}
.instructor_profile:hover {
    transform: scale(1.02); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.instructor_photo {
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    margin-right: 20px;
    object-fit: cover; 
    border: 3px solid #007bff; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.instructor_details {
    flex: 1;
}
.instructor_details h3 {
    font-size: 1.3em;
    margin: 0; 
    color: #333;
}
.instructor_details h4 {
    font-size: 1.2em;
    color: #555;
    margin: 5px 0; 
}
.instructor_details p {
    font-size: 0.95em;
    margin: 10px 0; 
    color: #666;
}
.instructor_details h5 {
    font-size: 1.2em; 
    margin: 10px 0 5px; 
    color: #007bff; 
}
.instructor_details ul {
    list-style-type: disc;
    margin: 10px 0; 
    padding-left: 20px; 
    font-size: 0.95em;
}
.instructor_details a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95em;
}
.instructor_details a:hover {
    text-decoration: underline;
}


/* Main reviews section */
#reviews_content {
    padding: 30px;
    background-color: #f9f9f9; 
    border-radius: 0.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    margin: 20px auto;
    max-width: 800px;
}
.review_container {
    margin-top: 20px;
}
.review_item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 0.5em; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px; 
    transition: transform 0.2s; 
}
.review_item:hover {
    transform: scale(1.02);
}
.review_avatar {
    margin-right: 15px; 
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}
.review_details {
    flex: 1;
}
.review_details h3 {
    font-size: 1.2em;
    margin: 0; 
    color: #333; 
}
.review_stars {
    color: #ffcc00;
    margin: 5px 0;
    font-size: 1.2em;
}
.star {
    margin-right: 2px;
}
.review_details p {
    font-size: 0.95em;
    margin: 10px 0; 
    color: #666;
    line-height: 1.5;
}
#reviews_content h2 {
    font-size: 1.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}
#description_right{
    position:absolute;
    width:285px;
    height:auto;
    bottom:-10%;    
    right:10%;
    border-radius:0.5em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border:none;        
    z-index:2;
}
.description-image {
    width: 95%;
    margin:2.5%;
    height: 180px;
    border-radius: 0.5em;
}
.price {    
    font-size: 20px;    
    padding-left:1em;
    font-weight:500;
    color:#619ce4;
}
.lecture,
.skill_level{
    display: flex;    
    justify-content: space-between;
    width:84%;
    margin:0 auto;
    padding:1em 0 0.6em 0;
    border-bottom:1px solid #ccc;  
}
.lecture div:first-child,
.skill_level div:first-child{
    display:flex;
    align-items: center;       
}
.lecture div:first-child i{
    padding-right:0.6em;
    color:#db5b5b;
    font-size:1em;
}
.lecture div:first-child h4,
.skill_level div:first-child h4{
    font-size:0.85em;
    font-weight:500;
}
.lecture div:last-child,
.skill_level div:last-child{
    font-size:0.85em;
    font-weight:500;
}
.skill_level div:first-child i{
    padding-right:0.6em;
    color:#5bdb5b;
    font-size:1em;
}
.start-now {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;            
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.2s ease;
    width:84%;
    margin:0 auto;
    border:1px solid #b744ec;
    margin-top:1em;
    border-radius:0.4em;
    color:#b744ec;
    background-color: rgba(183, 68, 236, 0.1);
}
.start-now i {
    margin-right: 8px; 
    font-size: 1.2em;
}
.start-now:hover {
    background-color: rgba(183, 68, 236, 0.3);
    color:#000;
}
#contact_link{
    display: flex;
    align-items: center;
    justify-content: center;
    padding:1.5em 0 2.5em 0;
}
#contact_link a:first-child i{
    padding-left:0;
    font-size: 18px;
    color: #0065d1;
    transition:color .2s ease;
}
#contact_link a:first-child i:hover{
    color:#007bff;
}
#contact_link i {
    padding-left:2em;
    font-size: 18px;
    color: #007bff;
    transition:color .2s ease;
}
#contact_link i:hover{
    color: #005ec3;
}
#contact_link .fa-youtube{
    color:#ff0000;
    transition:color .2s ease;
}
#contact_link .fa-youtube:hover{
    color:#cb0000;
}



@media (min-width:769px) and (max-width:1180px){         
    #side_description h1{
        width:70%;
        font-size:1.9em;    
    }            
    #side_description #admin_description{
        width:100%;
    }
    #main_section{
        position:relative;
    }
    #description_body{                
        width:60%;    
        padding:2em;       
    }
    
}
@media (min-width:500px) and (max-width:768px){
    #side_description h1{
        width:100%;
        font-size:1.8em;   
        text-align:center; 
    }            
    #side_description #admin_description{
        width:100%;
        flex-wrap:wrap;
        justify-content:center;
        margin-bottom:0;
    }
    #upload_time{
        justify-content:center;
    }
    #main_section{
        position:relative;
        height:auto;
        display:flex;
        flex-direction:column-reverse;
    }
    #description_body{  
        position:relative;              
        width:90%;    
        top:0;
        left:0;
        margin:1em auto;  
        padding:1em 0;                          
    }
    #description_right{
        position:relative;                     
        width:50%;              
        top:0;
        right:0%;        
        margin:1em auto;                         
    }
}
@media screen and (max-width:499px){            
    #side_description h1{
        width:100%;
        font-size:1.4em;   
        text-align:center; 
    }            
    #side_description #admin_description{
        width:100%;
        flex-wrap:wrap;
        justify-content:center;
        margin-bottom:0;                
    }        
    #upload_time{
        justify-content:center;
    }
    #main_section{
        position:relative;
        height:auto;
        display:flex;
        flex-direction:column-reverse;
    }
    #admin_description img{
        margin-bottom:1.5em;
    }
    .admin_create{
        margin-bottom:1em;
    }
}

/* mycourse.php */
#main_course{
    background-color: #430062;    
}
#course_side{
    display:flex;
    width:93%;
    margin:0 auto;
    justify-content: space-between;    
}
#course_side #course_left{
    display:flex;
    flex-direction: column;
    justify-content: center;   
    color:#fff;     
}
#course_side #course_left div:first-child{
    display:flex;
    align-items: center;    
    font-size:0.9em;
}
#course_left div:first-child a{
    font-weight:400;
    padding-right:0.8em;
    text-decoration:none;
    transition:color .2s ease;
}
#course_left div:first-child a:hover{
    color:#c9c6ca;
}
#course_side #course_left div:first-child a i{
    padding-right:0.8em;
}
#course_left div:first-child i:nth-child(2){
    padding-right:0.8em;
}
#course_side #course_left div:last-child{
    padding-top:0em;
    font-size:1.45em;        
}
#course_side #course_right{
    padding:1em 0;
}
#course_right img{
    width:180px;
    height:180px;
}
#course_body {
    width: 85%;
    margin: 0 auto;
    display: flex;
    padding: 1em 0;
}
#course_body_left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    height: 350px;
    border: 1px solid #ccc;
    margin-right: 2em;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1em;
}
#course_body_left img{
    width:95px;
    height:95px;
    border-radius:50%;
}
#course_body_left h2{
    font-weight:600;
    font-size:1.15em;
    padding-top:0.8em;
}
#course_body_left h5{
    font-weight:400;
    font-size:0.8em;
    padding-top:0.2em;
    color:#898989;
    padding-bottom:2em;
}
#course_body_left a{
    width:95%;
    padding:0.5em 1em;
    border-radius:0.5em;     
    font-size:0.9em;
    margin-bottom:0.5em; 
    font-weight:500;
    transition:.2s ease;
    text-decoration: none;
}
#course_body_left a:hover{
    background-color: #bd7ddb;    
}
#course_body_left a i{
    padding-right:0.5em;
}
#course_body_right {
    width: 70%;
    height: auto;
    max-height:600px;
    border: 1px solid #ccc;
    margin-right: 2em;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1em;
    overflow-y:auto;
}
#course_body_right::-webkit-scrollbar{
    width:0;
}
#course_body_right h2{
    padding-bottom:0.9em;
    font-weight:600;
    font-size:1.3em;
}
#about_course{
    display:flex;    
    padding-bottom:3em;
}
#about_course #course_img img{
    width:200px;
    height:120px;
    border-radius:0.5em;
    margin-right:1.7em;
}
#course_info{    
    width:90%;
}
#course_info #course_title{
    font-size:0.95em;
    font-weight:600;
    padding-bottom:0.7em;
}
#course_info #course_duration_time h4{
    font-weight:500;
    font-size:0.85em;
    padding-right:1em;
}
#course_info #course_duration_time h4 i{
    padding-right:0.4em;
}
#admin_course_info{
    display:flex;
    align-items: center;
    justify-content: space-between;
}
#admin_course_info div:first-child{
    display:flex;
    align-items: center;
}
#admin_course_info div:first-child img{
    width:37px;
    height:37px;
    border-radius:50%;
    margin-right:0.5em;
}
#admin_course_info div:first-child h4{
    font-size:0.85em;
    font-weight:500;    
    width:120px;    
}
.rating {
    font-size: 14px;
    color: #ccc;
    display: flex;
    padding-left:0.5em;
}
.rating i{
    padding-right:0.7em;
}
#admin_course_info div:last-child a{
    padding:0.6em 1em;
    color:#fff;
    background-color:#430062;
    border:none;
    cursor:pointer;
    transition:background-color .2s ease;
    text-decoration:none;
}
#admin_course_info div:last-child a:hover{
    background-color:#700c9f;
}
#admin_course_info div:last-child a i{
    padding-right:0.5em;
}
@media (min-width:769px) and (max-width:1200px){
    #course_body {
        width: 95%;
        margin: 0 auto;
        display: flex;
        padding: 1em 0;
    }
}
@media (min-width:769px) and (max-width:1200px) {
    #course_side #course_left div:last-child{
        font-size:1.3em;      
    }
    #course_right img{
        width:120px;
        height:120px;
    }
    /* Body section */
    #course_body {
        width: 60%;
        flex-direction: column;
        align-items: center;        
    }
    #course_body_left {
        width: 100%;
        height:auto;
        text-align: center;
    }
    #course_body_left img {
        width: 120px;
        height: 120px;
    }
    #course_body_left h2{
        font-size: 1.2em;
    }
    #course_body_left h5 {
        font-size:0.9em;
    }
    #course_body_left a {
        font-size: 0.85em;        
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }
    #course_body_right {
        width: 100%;
        padding: 20px;
        margin-top:1.5em;
    }
    #about_course {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    #course_img img {
        width: 100%;
        height: auto;
    }
    #course_info {
        width: 100%;
        text-align: center;
    }
    #course_title {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    #course_duration_time h4 {
        font-size: 1rem;
        margin:0 auto;
    }
    #progress_bar_container {
        width: 50%;
        height: 8px;
        margin: 10px 0;
    }    
    #admin_course_info div:first-child{
        padding:0.4em 0;  
    }
    #admin_course_info {
        flex-direction: column;
        align-items: center;       
    }
    #admin_course_info img {
        width: 50px;
        height: 50px;
    }
    #admin_course_info h4 {
        font-size: 1.2rem;
    }
    .star i {
        font-size: 1em;
    }
}
@media screen and (max-width: 768px) {    
    #course_side #course_left div:last-child{
        font-size:1.3em;      
    }
    #course_right img{
        width:120px;
        height:120px;
    }
    /* Body section */
    #course_body {
        flex-direction: column;
        align-items: center;     
        width: 100%;           
    }
    #course_body_left {
        width: 90%;
        margin: 0 auto;
        height:auto;
        text-align: center;
    }
    #course_body_left img {
        width: 120px;
        height: 120px;
    }
    #course_body_left h2{
        font-size: 1.2em;
    }
    #course_body_left h5 {
        font-size:0.9em;
    }
    #course_body_left a {
        font-size: 0.85em;        
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }
    #course_body_right {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        margin-top:1.5em;
    }
    #about_course {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    #course_img img {
        width: 100%;
        height: auto;
    }
    #course_info {
        width: 100%;
        text-align: center;
    }
    #course_title {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    #course_duration_time h4 {
        font-size: 1rem;
        margin:0 auto;
    }
    #progress_bar_container {
        width: 50%;
        height: 8px;
        margin: 10px 0;
    }    
    #admin_course_info div:first-child{
        padding:0.4em 0;  
    }
    #admin_course_info {
        flex-direction: column;
        align-items: center;       
    }
    #admin_course_info img {
        width: 50px;
        height: 50px;
    }
    #admin_course_info h4 {
        font-size: 1.2rem;
    }
    .star i {
        font-size: 1em;
    }
}
@media screen and (max-width:550px){    
    #admin_course_info div:first-child img{
        width:60px;
        height:60px;
        margin-bottom:0.5em;
    }
}
@media screen and (max-width:480px){
    #course_side{
        display:flex;
        flex-direction: column;
        width:90%;
        margin:0 auto;    
        padding-top:1em;    
    }
    #course_side #course_left{
        flex-direction: column;
        justify-content: center;      
    }
    #course_left div:first-child a{
        font-size:0.95em;
    }
    #course_left div:first-child a:hover{
        color:#c9c6ca;
    }
    #course_side #course_left div i{
        font-size:0.85em;
    }
    #course_side #course_left div:last-child{
        padding-top:1em;
        font-size:1.2em;
        text-align:center;        
    }
    #course_side #course_right{
        margin:0 auto;        
        padding:1em 0;
    }
    #course_info #course_duration_time{ 
        display:flex;
        padding-left:0;
    }
}

.view-video-container {
    width:90%;
    margin: 20px auto;
    padding: 10px;
}
.view-video-container .header {
    text-align: center;
    margin-bottom: 30px;
}
.view-video-container .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.view-video-container .video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.view-video-container .video-card:hover {
    transform: scale(1.03);
}
.view-video-container .video-card iframe {
    width: 100%;
    height: 180px;
    border: none;
}
.view-video-container .video-info {
    padding: 15px;
    text-align: center;
}
.view-video-container .video-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
.view-video-container .play-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}
.view-video-container .play-button:hover {
    background-color: #0056b3;
}

/* watch_video.php */
.watch_video_container {
    width:90%;
    margin:0 auto;           
    padding: 10px;
    margin-top:40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.watch_video_container .video-player {
    width: 100%;
    height: 450px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
}
.watch_video_container .video-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}
.watch_video_container .video-description {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 20px;
}
.watch_video_container .back-link {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
}
.watch_video_container .back-link:hover {
    background-color: #0056b3;
}
.watch_video_container .text-center {
    text-align: center;
}
     
/* user-chat.php */
#chat-body {
    background-color: #c8e6e7;
}

/* Chat container styling */
#chat-container {
    max-width: 600px;
    margin: 20px auto;
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 80vh;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 6px #aaaaaa;
}

/* Chat header */
#chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#chat-header h3{
    color: #fff;
    padding-top:0.4em;
}

/* Chat box */
#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

/* Chat messages */
.chat-message {
    max-width: 70%;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    font-size: 0.9em;
}

.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
}

.admin-message {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border: 1px solid #ddd;
}

/* Timestamp and Seen Icon */
.message-header {
    display: flex;            
    align-items: center;
    font-size: 0.8em;
    color: #fff;
    margin-bottom: 5px;
}

.user-message .message-header {
    color: #ffffff;
}

.admin-message .message-header {
    color: #555;
}

.message-time {
    margin-right: 5px;
}

.chat-seen {
    font-size: 1em;
    color: #F8F9FA;
}

/* Chat form */
#chat-form {
    display: flex;                        
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    padding: 10px 0.5em;
    resize: none;
    outline: none;
}

#send-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-button:hover {
    background: #0056b3;
}

#upload-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    font-size: 1.5em;
    color: #007bff;
    cursor: pointer;
    margin-right: 10px;
}

#upload-button:hover {
    color: #0056b3;
}
#new-message-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    display: none;
}

#new-message-alert.visible {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    #chat-container {
        height: 90vh;   
        margin: 0 auto;     
    }

    #chat-input {
        font-size: 0.9em;
    }

    #send-button {
        padding: 8px 12px;
        font-size: 1em;
    }
}


/* user_profile.php */
.profile-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}
.profile-container .edit-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-container .edit-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}
.profile-header {
    text-align: center;
}
.profile-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
}
.profile-header h2 {
    margin-top: 15px;
    color: #007bff;
}
.profile-header p {
    color: #6c757d;
}
.profile-container .info-label {
    font-weight: bold;
    color: #495057;
}
@media (max-width: 576px) {
    .profile-header img {
        width: 100px;
        height: 100px;
    }
    .profile-header h2 {
        font-size: 1.5rem;
    }
    .profile-container .info-label {
        font-size: 0.9rem;
    }
    .profile-container .info-value {
        font-size: 0.9rem;
    }
}

/* edit_profile.php */
.edit-user-form-container {
    max-width: 900px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.edit-user-form-container .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.edit-user-form-container .form-header h2 {
    font-size: 1.9rem;
    color: #485db1;
    font-weight: 600;
}

.edit-user-form-container .form-group {
    margin-bottom: 20px;
}

.edit-user-form-container .form-group label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #495057;
}

.edit-user-form-container .form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.edit-user-form-container .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.edit-user-form-container .form-control::placeholder {
    color: #6c757d;
}

.edit-user-form-container .btn-save {
    background-color: #4c82af;
    color: #fff;
    font-size: 1em;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.edit-user-form-container .btn-save:hover {
    background-color: #418bc7;
    transform: scale(1.05);
}

.edit-user-form-container .alert {
    margin-top: 20px;
    border-radius: 10px;
}

.edit-user-form-container .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.edit-user-form-container .form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.edit-user-form-container .form-row .form-group label {
    font-size: 1rem;
    padding-bottom: 0.3em;
}

.edit-user-form-container .form-row img {
    max-width: 150px;
    border-radius: 10px;
}

.edit-user-form-container input[type="file"] {
    border: 1px solid #ddd;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .edit-user-form-container  {
        padding: 20px;
    }

    .edit-user-form-container .form-row {
        flex-direction: column;
    }

    .edit-user-form-container .btn-save {
        width: 100%;
        padding: 15px;
    }
}


/* rating style */
.stars {
    display: flex;
    flex-direction: row-reverse; /* Arrange stars from right to left */
    justify-content: flex-start;
}

.stars input[type="radio"] {
    display: none; /* Hide radio buttons */
}

.stars .star {
    font-size: 2rem;
    color: #ccc; /* Default star color */
    cursor: pointer;
}

/* Highlight stars up to the selected one */
.stars input[type="radio"]:checked ~ .star {
    color: gold; /* Highlight all stars up to the selected one */
}


.review_item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review_avatar img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.review_details textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.review_stars {
    display: flex;
    gap: 5px;
}

.rate {                
    font-size: 1.1em;
    position: relative;
    margin-bottom: 0.5em;
}

.full-star {
    color: #ffc107; 
}

.empty-star {
    color: #e4e5e9;
}

.half-star {
    color: #e4e5e9;
    position: relative;
}

.half-star:before {
    content: '\2605';
    position: absolute;
    color: #ffc107; 
    width: 50%; 
    overflow: hidden;
    display: inline-block;
    left: 0;
}