body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* --- Navigation Styling --- */
.navbar {
    background: #333;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    position: relative;
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
}

.nav-links a:hover {
    background-color: #555;
    border-radius: 3px;
}

/* --- Sub-menu Styling --- */
.submenu {
    display: none; /* Hide the submenu by default */
    position: absolute;
    background-color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    z-index: 1000;
}

.submenu li {
    margin: 0;
    width: 100%;
}

.submenu a {
    padding: 10px 15px;
}

/* Show the submenu when hovering over the parent 'Courses' item */
.has-submenu:hover .submenu {
    display: block;
}

/* --- Main Content Styling --- */
main {
    padding: 0; /* Changed from 20px to allow full-width hero section */
}

section {
    padding: 60px 20px;
    min-height: 400px;
    border-bottom: 1px solid #ddd;
}

h1, h2 {
    color: #333;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* --- Home Page Hero Section Styling (New Additions) --- */

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('your_background_image.jpg') no-repeat center center/cover;
    color: white; /* Text will be white on the dark background */
    padding: 100px 20px;
    height: 60vh; /* Viewport height - makes it a prominent header */
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: left;
    border-bottom: none; /* Remove the standard section border */
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-section h1 {
    color: white; /* Ensure heading is white */
    font-size: 3em;
}

.hero-image-container {
    flex: 1;
    max-width: 40%;
    text-align: right;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: smooth corners for the image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Basic responsiveness for mobile view */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Stack the content and image vertically on small screens */
        height: auto;
        text-align: center;
    }

    .hero-content, .hero-image-container {
        max-width: 100%;
        margin-top: 20px;
    }

    .hero-image-container {
        text-align: center;
    }
}

/* --- Gallery Styling --- */

.gallery-grid {
    display: grid;
    /* 3 columns of equal size on large screens */
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; /* Space between images */
    margin-top: 30px;
}

.gallery-item img {
    width: 100%; /* Make image fill its container */
    height: 250px; /* Set a fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without stretching */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slightly enlarge image on hover */
}

/* Responsiveness for the gallery grid */
@media (max-width: 768px) {
    .gallery-grid {
        /* Change to 2 columns on medium screens (tablets) */
        grid-template-columns: repeat(2, 1fr); 
    }
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        /* Change to 1 column on small screens (phones) */
        grid-template-columns: 1fr; 
    }
    .gallery-item img {
        height: 250px;
    }
}
/* --- Course Grid Styling --- */

.course-grid {
    display: grid;
    /* Create 3 columns of equal size on large screens, with a gap of 20px */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 30px;
}

.course-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid #007BFF; /* A colorful top border */
}

/* ... (the rest of the card styles and media queries for responsiveness) ... */