* {
    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;
}

.burger-menu {
    display: none; /* Hide burger menu by default */
    flex-direction: column; /* Stack lines vertically */
    cursor: pointer; /* Change cursor to pointer */
}

.burger-line {
    width: 25px; /* Width of the burger lines */
    height: 3px; /* Height of the burger lines */
    background-color: #333; /* Color of the burger lines */
    margin: 4px 0; /* Space between lines */
}
/*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 {
    flex: 1; /* Allow buttons to grow and take equal width */
    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 */
    min-width: 150px; /* Optional: Set a minimum width for buttons */
}

.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 > h2{
    font-size: 40px;
    text-align: center;
}

.news-row .col-md-4 {
    flex: 1 1 33.3333%; /* Allow each box to take up 1/3 of the row */
    max-width: 33.3333%; /* Ensure max width is 1/3 */
    padding: 15px; /* Add padding around each box */
    box-sizing: border-box; /* Include padding in width calculation */
}
/*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: 1200px;
    margin: 50px auto;
    display: flex; /* Use flexbox layout */
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: flex-start; /* Align items to the start */
    gap: 20px; /* Space between items */
    font-size: 1.3em;
    padding: 0 10px; /* Add horizontal padding to prevent overflow */
}

.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 */
    flex: 0 0 calc(33.333% - 20px); /* Allow 3 items per row with space for gap */
    box-sizing: border-box; /* Include padding and border in width calculation */
}

.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; /* Use flexbox for the row */
    flex-direction: row; /* Stack items in a single row */
    align-items: stretch; /* Stretch items to the same height */
    flex-wrap: wrap; /* Allow items to wrap if necessary */
    width: 100%; /* Optional: Set width to 100% to take full width */
}

.news-box {
    display: flex; /* Use flexbox for the news box */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Distribute space between items */
    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 */
    flex-grow: 1; /* Allow the box to grow and fill the available 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 */
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
}

.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 */
}

/* Responsive iframe */
.footer-column iframe {
    width: 100%; /* Make iframe take full width */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Optional: Set a minimum height */
    border: 0; /* Remove border */
}
/*END OF FOOTER*/

@media (max-width: 1200px) {
    .footer-container {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center items horizontally */
        width: 100%; /* Ensure the container takes full width */
    }

    .footer-column {
        width: 100%; /* Each column takes full width */
        margin: 10px 0; /* Space between columns when stacked */
        text-align: center; /* Center text inside the columns */
    }

    .news-row .col-md-4 {
        flex: 1 1 50%; /* Allow each box to take up 1/2 of the row */
        max-width: 50%; /* Ensure max width is 50% */
        margin: 10px 0; /* Space between boxes when stacked */
    }

    .contact {
        flex: 0 0 calc(50% - 20px); /* Allow 2 items per row */
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    }
}

@media (max-width: 800px) {
    .news-row {
        flex-direction: column; /* Stack news boxes vertically */
    }

    .news-row .col-md-4 {
        flex: 1 1 100%; /* Each box takes full width */
        max-width: 100%; /* Ensure max width is 100% */
        margin: 10px 0; /* Space between boxes when stacked */
    }

    .container-button {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Stretch buttons to take full width */
    }

    .category-button {
        flex: none; /* Reset flex property for buttons */
        width: 100%; /* Make buttons take full width */
        margin: 5px 0; /* Space between buttons when stacked */
    }

    .contact {
        flex: 1 1 100%; /* Allow 1 item per row */
    }

    .contact-list {
        padding: 0; /* Remove padding to prevent overflow */
    }

    .nav-menu {
        display: none; /* Hide nav menu by default */
        flex-direction: column; /* Stack items vertically */
        position: absolute; /* Position it absolutely */
        top: 90px; /* Position below the navbar */
        left: 0; /* Align to the left */
        background-color: #f8f9fa; /* Background color */
        width: 100%; /* Full width */
        z-index: 999; /* Ensure it stays above other content */
    }

    .nav-menu.active {
        display: flex; /* Show nav menu when active */
        font-size: 1.3em;
        text-align: center;
    }

    .nav-menu li {
        margin: 10px 0; /* Space between menu items */
        padding: 10px 20px; /* Add padding for individual links */
        transition: font-size 0.3s ease; /* Smooth transition for font size */
    }

    .nav-menu a {
        text-decoration: none; /* Remove underline from links */
        color: #333; /* Text color */
        display: block; /* Make the link fill the entire list item */
    }

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

    .burger-menu {
        display: flex; /* Show burger menu on small screens */
    }

    .about-content {
        grid-template-columns: 1fr; /* 1 item per line for about content */
    }

    .gallery {
        grid-template-columns: 1fr; /* 1 item per line */
    }

    #imageModal{
        padding-top: 300px;
    }
}