@media (max-width:768px){
    body{overflow-x: hidden;}

        .navbar{
            flex-direction: column;
            gap: 10px;
            padding: 10px;
            align-items: center;
        }

        .nav-links{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        .hero h1,
        .hero h2{
            font-size: 28px;
        }

        .hero p{
            font-size: 16px;
        }

        button{
            width: 90%;
            margin: 10px auto;
            display: block;
            font-size: 16px;
        }

        .course-container{
            display: flex;
            flex-direction: column;
            gap: 20px;;
        }

        .course-grid{
            flex-direction: column;
            align-items: center;
        }

        .course-card{
            width: 95%;
            margin: auto;
        }

        .dashboard-buttons{
            display: flex;
            flex-direction: column;
            gap: 15px;
            align-items: center;
        }

        video{
            width: 100%;
            height: auto;
        }

        iframe{
            width: 100%;
            height: auto;
        }

        input, textarea, select{
            width: 95%;
            font-size: 16px;
        }

        table{
            display: block;
            overflow-x: auto;
             white-space: nowrap;
        }

        .footer{
            text-align: center;
            padding: 20px;
        }

        button{
            width: 90%;
        }

        #student-name{
            width: 90%;
        }

        .course-layout{
            flex-direction: column;
        }

        .lesson-sidebar{
            width: 100%;
            height: auto;
        }
    }


body{
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(to right, #f8fafc, #d6ddf4);
}

/*HEADER*/

header{
    display: flex;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #8CC7C4;
}

.hero{
    background: linear-gradient(to right,#f5f139, #d1d0ec);
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: auto;
}

.btn{
    padding: 12px 25px;
    background-color: #263B6A;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/*DASHBOARD*/

body.dashboard{ 
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #e3f2fd,#ffffff);
    text-align: center;
    margin-top: 60px;
 }

 body.dashboard h1{
    color: #1e3a8a;
    font-size: 36px;
    margin-bottom: 10px;
 }

 .dashboard button{
    padding: 10px;;
    background: #1e3a8a;
    color: white;
     border: none;
    border-radius: 5px;
    cursor: pointer;
    flex-wrap: wrap;
}

.dashboard button:hover{
    background:#2563eb;
}

.navbar .logo{
    width: 150px;
    height: auto;
    border-radius: 8px; /* soft edge*/
}
    

/* SKETCHUP PAGE ONLY*/
.sketchup-page{
    text-align: left;
    max-width: 900px;
    margin: auto;
}

.sketchup-page h1,.sketchup-page h2, .sketchup-page p{
    text-align: center;
}

.sketchup-page ul{
    margin-left: 20px;
}

.sketchup-page .back-btn{
    display: inline-block;
    margin: 30px;
    padding: 10px 20px;
    background-color: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s ease;
}

.sketchup-page .back-btn:hover{
    background-color: #2563eb;
}

.lesson:hover{
    background:#e0ecff;
    border-radius: 5px;
}

.lesson.active{
    background: #1e3a8a;
    color: white;
    border-radius: 5px;
}

/*COURSE*/

.courses{
    padding: 40px 20px;
    text-align: center;
}

.course-grid{
    display: flex;
    justify-content: center; /*center cards */
    gap: 30px; /* space between */
    flex-wrap: wrap; /* responsive */

}

.course-container{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.course-card{
    text-decoration: none;
    background: linear-gradient(to bottom, #a2c0eb, #a684bd);
    padding: 20px;
    width: 240px;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: #333;
    transition:all 0.3s ease;
    overflow: hidden;
}

.course-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.course-card h3{
    margin: 0;
    color: #1e3a8a;
    padding: 10px 15px 0;
    font-size: 18px;
}

.course-card p{
    font-size: 14px;
    color: #555;
    padding: 0 15px;
}

.course-card img{
width: 100%;
height: 160px;
object-fit: cover;
border-radius: 8px;
}

.course-card h3,.course-card p{
    padding: 10px;
}

.course-card button{
    margin: 15px;
    padding: 10px;
    width: calc(100% - 30px);
    background: teal;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.courses h2{
    text-align: center;
    margin-bottom: 20px;
}

.course-layout{
    display: flex;
    gap: 30px;
    max-width: 1100px; /* control width */
    margin: 40px auto; /* center everything */
    align-items: flex-start;
}

#course-progress{
    font-size: 18px;
    color: #1e3a8a;
    margin-top: 20px;
}

#student-name{
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

/*LEFT SIDE*/
.lesson-sidebar{
    width: 280px; /* fixed width*/
    flex-shrink: 0; /* prevent shaking */
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 10px;

   max-height: 500px;     /* fixed height*/
    overflow-y: auto;  /* scroll */
}

.lesson-sidebar::-webkit-scrollbar{
    width: 6px;
}

.lesson-sidebar::-webkit-scrollbar-thumb{
    background: #1e3a8a;
    border-radius: 10px;
}



/* RIGHT SIDE*/
.video-content{
    width: 70%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-content h2{
    text-align: left;
    margin-bottom: 10px; /* reduce space */
    font-size: 20px;
    font-weight: 600;
}

video{
    width: 100%;
}

/* LESSON STYLE*/
.lesson{
    display: flex;
    align-content: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #e3f2fd;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    gap: 10px;
}

.lesson:hover{
    background:#f1f5f9;
    cursor: pointer;
}

.lesson.active{
    background: #1e3a8a;
    color: white;
}

.lesson::before{
    content: "▶";
    margin-right: 8px;
    color: #118129;
}

#lesson-notes{
    margin-top: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

/* VIDEO*/ 
#video-player{
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}


.hero h1{
    font-size: 32px;
    color: #1e3a8a;
}

.hero h2{
    font-size: 32px;
    color: #1e3a8a;
}

.hero p{font-size: 18px;
    margin: 20px 0;
    color: #444;   
}

button{
    background: teal;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
}

button:hover{
    background: #5f2c82;
    transform: translateY(-2px);
}

h1,h2{
    color: #1e3a8a;
}

section{
    margin: 40px 0;
}

.navbar{
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.left{
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand{
    font-weight: bold;
    font-size: 18px;
}

.right{
    font-weight: 500;
}

.navbar h2{
    margin: 0;
}

.video-section{
    margin: 30px;
    max-width: 800px;
    text-align: center;
}

/* LOGIN INDEX HTML */
.login-btn{
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration:none;
    font-weight: bold;
    transition: 0.3s;
}

.login-btn:hover{
    transform: translateY(-2px);
}

.header{
    padding: 15px 40px;
}

nav{
    display: flex;
    align-items: center;
}
 /* LOGIN PAGE */
.login-page{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #e3f2fd, #ffffff);
}

/* CONTAINER */
.login-container{
    background: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
    max-width: 90%;
}

/*INPUT*/
.login-container input{
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* BUTTONS */
.login-container button{
    width: 100%;
    margin-top: 10px;
}

/*SIGNUP BUTTON */
.signup-btn{
    background: #ccc;
    color: black;
}

.signup-btn:hover{
    background: #999;
}

.login-container input:focus{
    outline: none;
    border: 2px solid #1e3a8a;
}

.premium{
    color:#999;
    cursor: not-allowed;
    font-weight: 500;
    opacity: 0.6;
}

.premium:hover{
    background: #f5f5f5;
}

 .premium::before{
    content: "🔒";
    margin-right: 5px;
    color: red;
 }

 .completed{
    background: #d1fae5;
    border-left: 5px solid #22c55e;
    font-weight: bold;
 }

 .progress-container{
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    margin: 10px 0;
 }

 #progress-bar{
    height: 100%;
    width: 0%;
    background: #22c55e;
    border-radius: 10px;
    transition: width 0.3s ease;
 }

 .verify-link{
    display: inline-block;
    margin-top: 10px;
    color: #1e3a8a;
    font-weight: bold;
    text-decoration: none;
 }

 .verify-link:hover{
    text-decoration: underline;
 }

 .action-buttons{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
 }

 .course-btn,
 .verify-btn,
 .logout.btn{
    background-color: #1e3a8a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
 }

 .course-btn:hover,
 .verify-btn:hover,
 .logout.btn:hover{
    background-color: #162d6b;
 }

 .deleteBtn{
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius:5px;
    cursor: pointer;
 }
    .deleteBtn:hover{
        background-color: #b02a37;
    }
    
    tr:hover{
        background-color: #e9f3ff;
    }

    #certificate{margin-top: 30px;
    }

    .nav-links{
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .nav-links a{
        color: #1a3c6e;
        text-decoration: none;
        font-weight: 500;
        transition: 0.3s;
        font-size: 15px;
    }

    .nav-links a:hover{
        color: #007bff;
        font-weight: bold;
        border-bottom: 2px solid #007bff;
    }

    .header #notes p{
        font-size: 20px;
    }

    #notes .notes{
        font-size: 20px;
    }

    .footer{
        background-color: #1e3a8a;
        color: white;
        text-align: center;
        padding: 30px 20px;
        margin-top: 50px;
    }

    .footer h3{
        margin-bottom: 10px;
    }

    .footer p{
        font-size: 14px;
        margin: 5px 0;
    }

    .footer-links{
        margin: 15px;
    }

    .footer-links a{
        color: white;
        margin: 0 10px;
        text-decoration: none;
        font-size: 14px;
    }

    .footer-links a:hover{
        text-decoration: underline;
    }

    .footer .copyright{
        font-size: 12px;
        opacity: 0.8;
    }

    .contact{
        text-align: center;
        padding: 60px 20px;
        background-color: #f9fafb;
    }

    .contact h2{
        font-size: 28px;
        margin-bottom: 10px;
    }

    .contact p{
        color: #555;
    }

    .contact-info{
        margin-top: 20px;
    }

    .contact a{
        color: #2563eb;
        text-decoration: none;
    }

.contact a:hover{
    text-decoration: underline;
}

    
    /*ABOUT SECTION*/
    .about-section{
        padding: 60px 20px;
        text-align: center;
        background: #bfcad6;
    }

    .about-section h1{
        font-size: 32px;
        color: #1e3a8a;
        margin-bottom: 15px;
    }

    .about-intro{
        max-width: 700px;
        margin: auto;
        font-size: 16px;
        color: #444;
        margin-bottom: 40px;
    }

    .about-grid{
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
    }

    .about-card {
        background: white;
        padding: 20px;
        width: 220px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: 0.3s;
    }

    .about-card:hover{
        transform: translateY(-5px);
    }.about-card h3{
        color: #1e3a8a;
        margin-bottom: 10px;
    }

    .about-card p{
        font-size: 18px;
        color: #555;
    }

    .testimonial-card{
        min-width: 300px;
        max-width: 300px;
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .testimonial-card h4{
        margin: 5px 0;
        color:#1a3c6e
    }

    .testimonial-card p{
        font-size: 14px;
    }

    .stars{
        color: gold;
        font-size: 18px;
    }

    #testimonialContainer {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .delete-review{
        background: crimson;
        color: white;
        border: none;
        padding: 8px 14px;
        border-radius: 5px;
        cursor: pointer;
    }

    .delete-review:hover{
        background: darkred;
    }

    .admin-login-body{
        text-align: center; 
        margin-top: 100px; 
        font-family: Arial, sans-serif;
    }

    img{
        max-width: 100%;
        height: auto;
    }

    





    










