body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Wrapping the entire interface */
.container {
    width: 95%; /* Adjust as necessary */
    max-width: 1200px;
    height: 98vh; /* Total interface height */
    margin: 20px auto; /* Small margin around */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 10px;
    overflow: hidden; /* Ensures content stays within the height */
    display: flex;
    flex-direction: column;
}

header {
    border-radius: 10px;
    margin: 20px auto;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #004080;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-size: 18px;
}

.navbar ul li a:hover {
    background-color: #0066cc;
    transition: background-color 0.3s;
}

/* Updated Banner Section to match container width */
.banner-slider {
    position: relative;
    width: 1200px; /* Make sure the banner is the full width of the container */
    max-width: 100%; /* Ensure it doesn't exceed the container's width */
    margin: 20px auto;
    overflow: hidden;
    height: 300px;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    position: relative;
    min-width: 100%;
    height: 300px;
    box-sizing: border-box;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.main-container {
    display: flex;
    padding: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 1200px; /* Matches the container's max-width */
}

main.content {
    flex: 2;
    margin: 0 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
}

aside.sidebar,
aside.at-a-glance {
    flex: 1;
    margin: 0 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
}

aside h3 {
    background-color: #004080;
    color: white;
    padding: 10px;
    margin: 0;
    text-align: center;
}

aside ul {
    list-style-type: none;
    padding: 10px;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    text-decoration: none;
    color: #004080;
    font-weight: bold;
}

aside ul li a:hover {
    color: #0088cc;
}

@media only screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

.photo-gallery {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center align items horizontally */
    justify-content: center; /* Center align items vertically */
    padding: 10px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-main {
    text-align: center; /* Center align text inside gallery main */
    width: 100%; /* Ensure it takes full width */
    max-height: 400px; /* Increased main photo height */
    overflow: hidden;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Flexible grid columns */
    gap: 10px; /* Space between thumbnails */
    justify-items: center; /* Center thumbnails horizontally */
    margin-top: 10px;
}

.gallery-thumbnail {
    margin: 5px;
}

.gallery-thumbnail img {
    width: 100%; /* Adjust to container width */
    max-width: 180px; /* Limit max size */
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-thumbnail img:hover {
    transform: scale(1.1);
}

footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px;
    border: 2px solid #004080;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

footer ul li a:hover {
    text-decoration: underline;
}

/* Mobile Styling */
@media only screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    main.content {
        margin: 10px 0;
    }

    .navbar ul {
        flex-direction: row;
    }

    .navbar ul li {
        margin: 0 15px;
    }

    .banner-slider {
        width: 100%;
    }

    /* Adjust banner text on mobile */
    .banner-text {
        font-size: 16px; /* Reduce font size for smaller screens */
        white-space: nowrap; /* Prevent the text from breaking into multiple lines */
        padding: 8px 15px; /* Adjust padding to fit better on mobile */
        left: 50%;
        transform: translateX(-50%); /* Keep the text centered */
    }
}

@media only screen and (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr); /* Ensure two columns on smaller screens */
    }
}

@media only screen and (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr); /* Two columns for very small screens */
    }
}

    .sidebar,
    .at-a-glance {
        flex: 1;
        margin: 10px 0;
        padding: 15px;
    }

    /* Adjust font size and spacing for smaller screens */
    .sidebar h3,
    .at-a-glance h3 {
        font-size: 18px;
        text-align: center;
    }

    .sidebar ul,
    .at-a-glance ul {
        padding: 0;
        text-align: center;
    }

    .sidebar ul li,
    .at-a-glance ul li {
        margin-bottom: 8px;
        font-size: 16px;
    }
}
