* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

  html, body {
    height: 100%; /* Full height for the html and body */
    margin: 0; /* Remove default margin */
    font-family: Arial, Helvetica, sans-serif; /* Fallback to sans-serif */
}

#container{
    display: flex;
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Full height of the viewport */
}

#main-content {
    flex: 1; /* Allow main content to grow and take available space */
    max-width: 1500px;
    width: 100%;
    margin: auto;
    padding: 0 50px;
}

#main-content p img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Prevent the image from exceeding its container */
}

#main-content > h1{
    text-align: center; /* Center align text */
    margin: 50px 0;
    font-size: 50px;
}

#main-content > p{
    margin: 25px 0;
}

#main-content p{
    font-size: 1.3em;
}

/*START OF NAVIGATION*/
.navbar {
    background-color: #f8f9fa; /* Light background color */
    padding: 10px 20px; /* Padding around the navbar */
    position: sticky;
    top: 0; /* Sticks the navbar to the top */
    z-index: 1000; /* Ensures it stays above other content */
    transition: transform 0.3s ease; /* Smooth transition for the transform */
}

.navbar-container {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space between logo and menu */
}

.logo-section {
    display: flex;
    align-items: center; /* Center items vertically */
}

.logo {
    height: 75px; /* Adjust logo height */
    margin-right: 10px; /* Space between logo and text */
    transition: transform 0.3s ease; /* Smooth transition for the logo */
}

/*.navbar:hover .logo {
    transform: scale(1.1); Scale the logo to 110% 
}*/

.text-section h3,
.text-section h5 {
    margin: 0; /* Remove default margin */
    transition: font-size 0.3s ease; /* Smooth transition for font size */
}

.text-section h3{
    font-size: 1.5em;
}

.navbar:hover .text-section h3 {
    font-size: 1.8em; /* Increase font size for h3 */
}

.navbar:hover .text-section h5 {
    font-size: 1.1em; /* Increase font size for h5 */
}

.nav-menu {
    list-style: none; /* Remove bullet points */
    display: flex; /* Display items in a row */
}

.nav-menu li {
    margin-left: 20px; /* Space between menu items */
    transition: font-size 0.3s ease; /* Smooth transition for font size */
}

.navbar:hover .nav-menu li {
    font-size: 1.2em; /* Increase font size for h3 */
}

.nav-menu a {
    text-decoration: none; /* Remove underline from links */
    color: #333; /* Text color */
}

.nav-menu a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #811b1b;
}
/*END OF NAVIGATION*/

/*START OF SINGLE PAGE CONTENT*/
.title-container {
    text-align: center; /* Center the title text */
    margin: 50px 0; /* Space below the title */
}

.title-container h1 {
    margin: 0; /* Remove default margin */
}

.content-container img {
    margin-bottom: 30px; /* Space below the image */
    display: block; /* Ensure the image is treated as a block element */
    margin-left: auto; /* Center the image */
    margin-right: auto; /* Center the image */
    max-width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}

.content-container p:last-of-type{
    margin-bottom: 30px;
}

.date {
    font-size: 0.9em; /* Make the date smaller */
    color: #888; /* Set a lighter color for the date */
    margin-top: 5px; /* Space above the date */
}
.content-container {
    max-width: 1200px; /* Set max width for content */
    margin: 0 auto; /* Center the content container */
    padding: 0 20px; /* Optional: add some padding */
}
/*END OF SINGLE PAGE CONTENT*/

/*START OF HOME BUTTONS*/
.container-button {
    display: flex; /* Use flexbox to align buttons in a row */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    gap: 10px; /* Space between buttons */
    margin: 25px auto;
}

.category-button {
    padding: 10px 20px; /* Padding for buttons */
    font-size: 30px; /* Font size */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    background-color: #ac2424; /* Button background color */
    color: white; /* Button text color */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.category-button:hover {
    background-color: #811b1b; /* Darker shade on hover */
}
/*END OF HOME BUTTONS*/

/*START OF LATEST POSTS*/
.latest-posts {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the title and posts */
    margin: 100px auto;
}

.latest-posts .news-row {
    display: flex; /* Use flexbox for the row */
    flex-direction: column; /* Stack items in a single column */
    align-items: center; /* Center the boxes horizontally */
    width: 100%; /* Optional: Set width to 100% to take full width */
}

.latest-posts > h2{
    font-size: 40px;
}

.latest-posts .news-row .col-md-4 {
    width: 100%; /* Ensure each box takes full width of the row */
    max-width: 400px; /* Optional: Set a max width for the boxes */
}
/*END OF LATEST POSTS*/

/*START OF ABOUT CONTENT*/
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the title horizontally */
    margin-top: 50px; /* Adjust the top margin as needed */
}

.about-title {
    text-align: center; /* Center the text */
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create 2 columns */
    gap: 20px; /* Space between columns */
    max-width: 1000px; /* Set a max width for the content */
    margin-top: 20px; /* Space between title and content */
}

.about-content > div {
    height: 200px; /* Set a specific height for each content block */
    overflow: hidden; /* Hide overflow if content exceeds height */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Optional: Add a border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
}
/*END OF ABOUT CONTENT*/

/*START OF ABOUT GALLERY*/
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 100px 0;
    max-width: 1200px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

#imageModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    padding: 50px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
/*END OF ABOUT GALLERY*/

/*START OF CONTACTS*/
.contact-list {
    max-width: 600px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create 2 equal columns */
    gap: 20px; /* Space between grid items */
    font-size: 1.3em;
}

.contact {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.contact:hover{
    background: #811b1b;
    color: white;
}

.contact:hover .function,
.contact:hover strong,
.contact:hover span {
    color: white; /* Change color of all text elements on hover */
}

.function {
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
}

hr {
    border: 1px solid #ccc;
    margin: 5px 0;
}

strong {
    font-size: 1.2em;
    color: #333;
}

span {
    display: block;
    color: #666;
}
/*END OF CONTACTS*/

/*START OF NEWS LIST*/
.news-container {
    max-width: 1200px;
    margin: 50px auto;
}

.news-row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 15px;
}

.news-box {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    height: 100%; /* Make sure the box takes full height */
}

.news-box:hover{
    background: #811b1b;
    color: white; /* Change text color to white on hover */
}

.news-box:hover h2,
.news-box:hover p,
.news-box:hover a {
    color: white; /* Change title and content color to white on hover */
}

.news-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
}

.news-title a:hover {
    text-decoration: underline;
}
/*END OF NEWS LIST*/

/*START OF FOOTER*/
.footer {
    background-color: #f8f9fa; /* Light background color */
    padding: 20px; /* Padding around the footer */
    margin-top: auto; /* Push footer to the bottom */
}

.footer-container {
    display: flex; /* Display columns in a row */
    justify-content: space-between; /* Space between columns */
}

.footer-column {
    flex: 1; /* Each column takes equal space */
    margin: 0 10px; /* Space between columns */
}

.footer-column h3 {
    margin-bottom: 10px; /* Space below the heading */
}

.office-hours {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Collapse borders */
}

.office-hours td {
    padding: 5px; /* Padding inside table cells */
}

.office-hours tr {
    border-bottom: 1px solid #ccc; /* Horizontal line at the bottom of each row */
}

.office-hours tr:last-child {
    border-bottom: none; /* Remove border from the last row */
}
/*END OF FOOTER*/