/* Logo at the top of the page */
.navbar-logo {
  margin-left: auto;
}

.navbar-logo img {
  height: 40px; /* Adjust the size as needed */
  width: auto;
}

/* Adjusts the layout of the news container */
.latest-news-container {
display: flex;
justify-content: space-between; /* Space evenly between items */
}

/* Style specifications for each news item */
.news-item {
text-align: center;
max-width: 30%; /* Adjust the maximum width as needed */
position: relative; /* Create a relative positioning context */
overflow: hidden; /* Ensure nothing spills out of the box */
}

/* Styles for the image of the news item */
.news-item img {
width: 100%;
display: block; /* Removes any gaps below the image */
object-fit: cover; /* Crop the image to fit the container */
border-radius: 10px; /* Add rounded borders */
transition: transform 0.3s; /* Smooth zoom on hover for a more interactive effect */
}

/* Add a zoom effect when hovering over the news item */
.news-item:hover img {
transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Center the title over the image */
.news-item h3 {
position: absolute;
bottom: 0; /* Position the title at the bottom of the image */
width: 100%; /* Use the full width of the parent */
background-color: #00376D99; /* Blue background with 60% opacity for readability */
color: white; /* Text color set to white for visibility against the blue */
padding: 10px 0; /* Padding at top and bottom */
margin: 0; /* Remove any default margins */
border-radius: 0 0 10px 10px; /* Rounded borders only at the bottom of the title */
text-align: center; /* Center align the text */
}

/* The following goes for how blog post are displayed in the blog page */

/* Define the layout for each post item */
.archive__item {
min-height: 300px; /* Set a minimum height for each post */
margin-top: 10px; /* Adjust the top margin as needed */
margin-bottom: 10px; /* Adjust the bottom margin as needed */
display: flex; /* Use flexbox for alignment */
align-items: center; /* Center items vertically within each post */
overflow: hidden; /* Hide any content or image overflow */
}

/* Ensure consistent height for featured images */
.archive__item-featured-image img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Maintains consistent proportions */
  margin-top: 10px; /* Adjust the top margin as needed */
  margin-bottom: 10px; /* Adjust the bottom margin as needed */
  object-fit: cover;  /* Scale the image to cover its container without distorting its aspect ratio */
  object-position: center; /* Position the center of the image in the center of the container. Adjust if necessary. */
  border-radius: 5%; /* Add rounded corners to the featured image */
  display: block;
  align-items: center; /* Center items vertically within each post */
  overflow: hidden;
}

/* Ensure content takes up remaining space in the post */
.archive__item-content {
flex: 1; /* Allow the content to grow to fill available space */
}

/* Additional styles for the two-column layout */
.two-column-layout {
display: flex;
width: 100%;
gap: 20px; /* Add space between the two columns */
}

/* Define the width for the column containing the featured image */
.column-40 {
flex: 40%; /* Adjust the width as needed (e.g., 40% for image) */
}

/* Define the width for the column containing the content */
.column-60 {
flex: 60%; /* Adjust the width as needed (e.g., 60% for content) */
}

/* Button */
a.button {
  background-color: #00376D;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px; /* Rounded corners */
  transition-duration: 0.4s; /* Transition effect when hovering over the button */
  text-decoration: none;  /* Removes underline */
  width: 100%; /* Ensures the button takes up the full width of the container */
}

a.button:hover {
  background-color: #74B0D4; /* Slightly lighter color for hover effect */
  text-decoration: none;  /* Ensures underline is removed during hover as well */
}
