
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /
}

.container-main {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    background-color: #212529;
    color: #e9ecef; 
    padding: 10px 0; 
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); 
    margin-bottom: 40px;
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

.navbar .container-main { 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.navbar .logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.4rem; 
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-right: 15px; 
}

.navbar .logo span {
    display: block; 
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0; 
    padding: 0; 
}

.navbar ul li {
    margin-left: 22px; 
}

.navbar ul li a {
    text-decoration: none;
    color: #e9ecef;
    font-size: 1.01rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; 
}

.navbar ul li a:hover,
.navbar ul li a.active { 
    background-color: #007bff; 
    color: #ffffff; 
}


/* --- About Us Section --- */
.about {
    background: linear-gradient(to right, #ffffff, #f0f8ff); 
    padding: 80px 20px;
    margin-bottom: 50px; 
    text-align: center;
}

.about h2 {
    font-size: 3rem;
    color: #212529;
    margin-bottom: 40px;
    position: relative;
    display: inline-block; 
}

.about h2::after {
    content: '';
    display: block;
    width: 80px; 
    height: 4px; 
    background-color: #007bff; 
    margin: 10px auto 0; 
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
    max-width: 1100px; 
    margin: 0 auto; 
    gap: 40px; 
}

.about p {
    font-size: 1.15rem; 
    line-height: 1.8; 
    text-align: justify;
    flex: 1; 
    min-width: 300px; 
    max-width: 700px; 
    color: #495057; 
    margin: 0; 
}

.about img {
    height: auto;
    max-height: 400px;
    width: auto;
    max-width: 100%;
    border-radius: 10px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}


.features {
    background-color: #e9ecef;
    padding: 60px 20px;
    text-align: center;
    margin-top: 30px;
}

.features h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 15px;
}

.card hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px auto;
    width: 50%;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.featured-courses {
    background-color: #343a40;
    padding: 60px 20px;
    text-align: center;
    color: #f8f9fa; 
    margin-top: 50px; 
}

.featured-courses h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007bff; 
}

.featured-courses .para {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ced4da; 
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-box {
    background-color: #ffffff;
    color: #212529; /* Dark text */
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.course-box:hover {
    transform: translateY(-10px);
    background-color: #007bff; 
    color: #ffffff; 
}


@media (max-width: 992px) { 
    .navbar ul li {
        margin-left: 15px;
    }
    .navbar ul li a {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    .about h2 {
        font-size: 2.5rem;
    }
    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar .container-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .logo {
        margin-bottom: 15px; 
        margin-right: 0; 
    }

    .navbar ul {
        flex-direction: column;
        width: 100%; 
        align-items: flex-start; 
    }

    .navbar ul li {
        margin: 0;
        width: 100%; 
    }

    .navbar ul li a {
        padding: 10px 20px; 
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar ul li:last-child a {
        border-bottom: none; 
    }

    .about {
        padding: 60px 20px;
    }

    .about h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .about-content {
        flex-direction: column; 
        gap: 30px;
    }

    .about p {
        text-align: left; 
    }

    .about img {
        max-height: 300px;
    }

    .features-grid, .courses-grid {
        grid-template-columns: 1fr;
    }

    .card, .course-box {
        width: 95%; 
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.7rem;
    }

    .about h2 {
        font-size: 1.8rem;
    }

    .about p {
        font-size: 0.95rem;
    }

    .features h1, .featured-courses h1 {
        font-size: 2rem;
    }
}