/* Reset some basic elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header styles */
header {
    background-color: #004c99;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.6rem;
    font-weight: bold;
}

header nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

header nav a:hover {
    opacity: 0.8;
}

/* Hero section */
/* Hero section without background image */
.hero {
    background-color: #e8f4f9;
    color: #004c99;
    padding: 80px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #cf5e0f;
}

/* Sections common styles */
section {
    padding: 60px 20px;
}

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

/* About section */
.about {
    background-color: #ffffff;
}

.about h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Articles */
.articles {
    background-color: #f5f5f5;
}

.articles h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-list article {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-list article img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.article-list article h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.article-list article p {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Courses */
.courses {
    background-color: #ffffff;
}

.courses h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.course {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.course p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.price {
    font-weight: bold;
    color: #e67e22;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact */
.contact {
    background-color: #f5f5f5;
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact p {
    text-align: center;
    margin-bottom: 30px;
}

.contact form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact form label {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
}

.contact form input,
.contact form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    font-size: 0.9rem;
}

.checkbox input {
    margin-right: 10px;
    margin-top: 3px;
}

.contact form button {
    margin-top: 15px;
    width: 100%;
}

/* Footer */
footer {
    background-color: #004c99;
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

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

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

footer .newsletter h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

footer .newsletter form input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
}

footer .newsletter form button {
    width: 100%;
    margin-top: 10px;
}

footer .footer-nav {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

footer .footer-nav a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

footer .contact-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

footer .copyright {
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        margin-top: 10px;
    }
    footer .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
}