/* General Body & Typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #007bff; /* Blue from template */
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff; /* Blue from template */
}

.logo span {
    font-size: 16px;
    display: block;
    color: #555;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #555;
}

.contact-info i {
    color: #007bff;
    margin-right: 5px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #007bff;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #007bff;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Boxes Section */
.info-boxes {
    background-color: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.info-boxes .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-box {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box i {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.info-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* General Section Styles */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section:nth-of-type(even) {
    background-color: #f8f9fa;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #007bff;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

/* About Us Section */
.about-us p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    text-align: center;
    font-size: 16px;
}

/* Courses Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.course-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.course-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #007bff;
}

.course-item p {
    font-size: 15px;
    color: #666;
}

/* Contact Form */
.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer p {
    margin-bottom: 15px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default on mobile */
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0,0,0,0.05);
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 15px 20px;
        display: block;
        color: #555;
    }
    .nav-links a::after { /* Remove hover underline on mobile menu */
        display: none;
    }
    .nav-links a:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    .menu-toggle {
        display: block; /* Show on mobile */
        align-self: flex-end; /* Push to right */
        margin-top: -35px; /* Adjust positioning */
    }

    .hero {
        padding: 80px 15px;
    }

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

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

    .info-boxes .container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }
    .logo span {
        font-size: 14px;
    }
    .contact-info {
        font-size: 12px;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .info-box h3 {
        font-size: 18px;
    }
}

/* Placeholder for hero-bg.jpg - replace with your actual image */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/hero.jpg') no-repeat center center/cover;
}