body {
}

.news-container {
    padding: 0; /* Removes default padding */
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers items horizontally */
}

/* Container for the list of news items */
.news-list {
    list-style: none; /* Removes default list styling */
    padding: 0; /* Removes default padding */
    display: flex; /* Enables flexbox layout */
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers items horizontally */
}

/* Styling for each news item */
.news-item {
    width: 80%; /* Set the width of each item */
    margin-bottom: 20px; /* Adds space between items */
    text-align: left; /* Aligns text to the left */
    max-width: 550px;
}

/* Styling for images in each news item */
.news-item img {
    display: block; /* Makes image a block element */
    margin: 0 auto; /* Centers the image */
    max-width: 100%; /* Ensures the image is not bigger than its container */
    height: auto; /* Keeps the image aspect ratio */
}

/* Styling for the headline and text */
.news-item h2, .news-item p {
    margin: 10px 0; /* Adds margin around the text and headline */
}

.news-item .learn-more {
    display: block; /* Makes the link a block element */
    text-align: center; /* Centers the link */
    margin: 10px 0; /* Adds top and bottom margin */
    color: #007bff; /* Example link color, adjust as needed */
    text-decoration: none; /* Removes underline from link */
}

.news-item .learn-more:hover {
    text-decoration: underline; /* Adds underline on hover for better UX */
}

/* Styling for the separator line */
.news-item hr {
    border: 0; /* Removes default border */
    height: 1px; /* Sets the height of the line */
    background-color: #ddd; /* Example color for the line, adjust as needed */
    margin: 20px 0; /* Adds space around the line */
}

/* Styles for the header */
.header {
    background-color: #f8f9fa; /* Example background color */
    padding: 10px 0; /* Top and bottom padding */
    text-align: center; /* Centers content */
}

/* Styles for the navigation container */
.header-nav {
    display: inline-block; /* Allows the nav to size according to its content */
    text-align: center; /* Ensures the links are centered */
}

/* Styles for each link */
.nav-link {
    margin: 0 15px; /* Horizontal spacing between links */
    text-decoration: none; /* Removes underline */
    color: #007bff; /* Example text color, adjust as needed */
    position: relative; /* Needed for positioning pseudo-elements */
}

/* Special style for the first link */
.nav-link:first-child {
    margin-left: 10px; /* Left margin specifically for the first link */
}

.nav-link:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}

/* Adding dividing lines between links */
.nav-link::after {
    content: '|'; /* This is the dividing line */
    position: absolute;
    right: -15px; /* Adjust as necessary for spacing */
    top: 0;
    color: #333; /* Color of the dividing line */
}

/* Removing the line from the last link */
.nav-link:last-child::after {
    content: none;
}

h1 {
    font-size: 2rem;
    margin: 10px 0 30px 0;
}