/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background: #4a90e2;
    color: white;
    padding: 20px 10px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid white;
    border-radius: 5px;
    transition: 0.3s;
}

nav a.active,
nav a:hover {
    background: white;
    color: #4a90e2;
}

/* Container */
.container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Inputs and Buttons */
input,
button {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #4a90e2;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #357ABD;
}

/* Blogs */
.blog-post {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.blog-post img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-post div h3 {
    margin-bottom: 5px;
}

.blog-post div p {
    font-size: 14px;
    color: #555;
}

/* Footer */
footer {
    background: rgb #f7f2f2 (247 242 242);
    color: #000000;
    text-align: center;
    /* padding: 15px; */
    /* margin-top: 40px; */
}

/* Responsive */
@media (max-width: 600px) {
    .blog-post {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-post img {
        margin-bottom: 10px;
    }
}


/* New Header Layout */
.custom-header {
    background: #4a90e2;
    color: white;
    padding: 20px 10px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Logo Left */
.header-left .logo img {
    height: 50px;
    width: auto;
}

/* Center Area (Title + Nav) */
.header-center {
    text-align: center;
}

.header-center h1 {
    margin: 0 0 10px;
}

/* Keep your existing nav styles */
.header-center nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-center nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid white;
    border-radius: 5px;
    transition: 0.3s;
}

.header-center nav a.active,
.header-center nav a:hover {
    background: white;
    color: #4a90e2;
}

/* Remove the old header centering since grid handles it */
header h1 {
    text-align: center;
}

.footer-container {
    padding-left: 20px;
    padding-right: 20px;
}

@media screen and (min-width: 768px) {
    .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}