/* Basic Reset & Font Import */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #dcedc8; /* Light Green background */
}

/* Container for Centering Content */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* Padding on sides for smaller screens */
}

/* Headings */
h1, h2 {
    color: #333; /* Dark text for headings */
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 1.8em;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    border: none; /* No border by default */
}

.button.primary {
    background-color: #FF8C00; /* Dark Orange */
    color: #fff;
}

.button.primary:hover {
    background-color: #e67e22; /* Slightly darker orange */
}

.button.secondary {
    background-color: #32CD32; /* Lime Green */
    color: #fff;
}

.button.secondary:hover {
    background-color: #28a745; /* Slightly darker green */
}

/* Hero Section */
.hero {
    background-color: #FF8C00; /* Dark Orange background for hero */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    min-height: 400px; /* Decent height */
    display: flex; /* Use flexbox for vertical centering */
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: #fff; /* White text for hero heading */
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation Bar */
.navbar {
    background-color: #4CAF50; /* Green for navigation */
    padding: 15px 0;
    text-align: center;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between links */
}

.navbar a {
    color: #fff; /* White links */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFD700; /* Gold/yellow on hover for contrast */
}

/* Subject Sections */
main.container {
    padding-top: 40px;
    padding-bottom: 40px;
    display: grid; /* Grid for flexible layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between cards */
}

.subject-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
    padding: 25px;
    text-align: center;
}

.subject-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.subject-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.subject-card p {
    margin-bottom: 15px;
}

.subject-card ul {
    list-style: none; /* No default bullets */
    padding: 0;
    margin-bottom: 20px;
}

.subject-card ul li {
    background-color: #e0f2f7; /* Light blue for list items, or choose a neutral */
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 3px;
    color: #444;
}

/* Call to Action Section */
.cta-section {
    background-color: #FF8C00; /* Dark Orange, matches hero */
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.cta-section h2 {
    color: #fff; /* White text */
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #4CAF50; /* Green, matches navbar */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }
    .navbar .container {
        flex-direction: column; /* Stack navigation links */
        gap: 10px;
    }
    .navbar a {
        padding: 8px 0;
        width: 100%; /* Make links full width */
    }
    main.container {
        grid-template-columns: 1fr; /* Single column layout on small screens */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}