/* main.css */

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-bottom: 1px solid #dddddd;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 150px;
    height: auto;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #007BFF;
}

/* Hero Section */
.hero {
    background-color: #e9ecef;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .btn {
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    background-color: #007BFF;
    border-radius: 5px;
}

.hero .btn:hover {
    background-color: #0056b3;
}

/* Features Section */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px;
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card img {
    max-width: 150px; /* Set maximum width for images */
    height: auto;
    margin: 0 auto 15px auto; /* Center the image and add bottom margin */
}

.card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
}

/* Footer Styles */
footer {
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #dddddd;
}

footer p {
    font-size: 14px;
    color: #666666;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #007BFF;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    header .container {
        flex-direction: column;
    }

    header {
        padding: 20px;
    }
}

/* Lesson Content Styles */
.lesson-content {
    padding: 60px 0;
}

.lesson-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 30px auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.lesson-navigation .btn {
    width: 45%;
    text-align: center;
    margin-bottom: 10px;
}

.lesson-navigation .btn.prev {
    background-color: #6c757d;
}

.lesson-navigation .btn.prev:hover {
    background-color: #5a6268;
}

.lesson-navigation .btn.next {
    background-color: #28a745;
}

.lesson-navigation .btn.next:hover {
    background-color: #218838;
}

@media (max-width: 576px) {
    .lesson-navigation .btn {
        width: 100%;
    }
}

/* Video Container Styles */
.video-container {
    max-width: 800px; /* Set the desired maximum width */
    margin: 0 auto; /* Center the video container */
    background-color: #000; /* Optional: Add background color */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Lesson Navigation Styles */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
    max-width: 800px; /* Match the video container width */
    margin-left: auto;
    margin-right: auto;
}

.lesson-navigation .btn {
    display: inline-block;
    width: 45%;
    text-align: center;
    margin-bottom: 10px;
    padding: 15px 0; /* Add padding for button appearance */
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.lesson-navigation .btn.prev {
    background-color: #6c757d;
}

.lesson-navigation .btn.prev:hover {
    background-color: #5a6268;
}

.lesson-navigation .btn.next {
    background-color: #28a745;
}

.lesson-navigation .btn.next:hover {
    background-color: #218838;
}

@media (max-width: 576px) {
    .lesson-navigation .btn {
        width: 100%;
    }
}

