/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.n1 {
    display: flex;
    align-items: center;
    gap: 50px;
}

.n1 a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

.n1 li {
    list-style: none;
}

.n1 a:hover {
    color: #007bff;
}

.n1 button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.n1 button:hover {
    background-color: #0056b3;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5vw;
    background: linear-gradient(to right, #f0f8ff, #e6e6fa);
}

.hero-content {
    max-width: 45vw;
}

.hero-content h1 {
    font-size: 48px;
    color: #333;
}

.hero-content p {
    font-size: 20px;
    color: #555;
}

.stats {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stats span {
    margin-right: 20px;
}

.stats .stars {
    color: gold;
}

.cta-button {
    padding: 15px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

.hero-image {
    max-width: 45vw;
    margin-left: 2vw;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Categories Section */
.categories {
    padding: 50px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Featured Courses Section */
.featured-courses {
    padding: 50px;
    text-align: center;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.course-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.course-card p{
    font-size: 18px;
}

.course-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Call to Action Section */
.cta-container {
    text-align: center;
    padding: 60px 20px;
    background-color: #007bff;
    color: white;
}

.cta-container h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        max-width: 80vw;
        margin-left: 0;
        margin-top: 20px;
    }

    .category-grid, .course-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .n1{
        margin-left: 190px;
    }

    .nav-logo{
        margin-left: 60px;
    }

    .sp1{
        margin-left: 40px;
    }
}