body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
body {
    background-color: #f5f5f5; /* Light gray */
    background-image: url('/static/your-texture-image.png'); /* Optional texture image */
    background-size: cover; /* Ensure the image covers the entire background */
    background-repeat: no-repeat; /* Prevent the texture from repeating */
    font-family: 'Roboto', sans-serif; /* Ensure font consistency */
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

header nav ul {
    list-style-type: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-right: 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
}

article {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}
article {
    text-align: left; /* Keep text left-aligned */
}
.article-content {
    white-space: pre-wrap; /* This preserves whitespace and line breaks */
}

.article-image {
    display: block; /* Make the image a block element */
    margin: 0 auto; /* Center the image */
    max-width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}

.article-image {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    height: auto;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between articles */
}

.article-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: calc(33% - 20px); /* Adjust width as needed */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-item:hover {
    transform: scale(1.02); /* Slightly enlarge on hover */
}

.article-item h3 {
    font-size: 1.5em;
}

.article-item p {
    color: #555;
}

.read-more {
    text-decoration: none;
    color: #007BFF; /* Bootstrap primary color */
    font-weight: bold;
}

nav {
    background-color: #333; /* Dark background for nav */
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Center the nav items */
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    padding: 5px 10px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #555; /* Darker background on hover */
    border-radius: 5px; /* Rounded corners */
}

.article-image {
    width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Space below the image */
}

@media (max-width: 768px) {
    .article-item {
        width: 100%; /* Stack articles vertically on small screens */
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
    }

    nav ul li {
        margin: 5px 0; /* Space between stacked nav items */
    }
}
body {
    font-family: 'Roboto', sans-serif; /* Use the new font */
}
.hero {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
}

.hero-image {
    max-width: 100%;  /* Ensure it scales responsively */
    height: auto;     /* Maintain aspect ratio */
    max-height: 300px; /* Set a maximum height to prevent it from being too large */
    object-fit: cover; /* Optional: Cover the area while maintaining aspect ratio */
}


.featured-article {
    margin: 20px 0;
}
