/* General Styles */
html, body {
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Ensure body positioning for absolute elements */
}

/* NAVIGATION */
nav {
    background-color: #2c3e50;   /* same color as header for seamless look */
    margin-top: 0;               /* removes gap between header and nav */
    padding: 5px 0 10px 0;       /* slight balance */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

nav ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    text-decoration: underline;
}


h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
}

/* HEADER */
header {
    background-color: #2c3e50;  /* same deep blue-gray */
    color: white;
    padding: 10px 0 0 0;        /* removed bottom padding */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: none;         /* remove line to blend with nav */
}

/* HEADER TEXT */
header h1 {
    margin: 0;
    font-size: 1.6em;
    color: white;                /* ensures visible against dark background */
}

.hero-text {
    text-align: center;
    margin: 20px 0;
}

.hero-text h2 {
    color: black;
}

.introduction {
    padding: 20px;
    text-align: center;
    background-color: white;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.7);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 1; /* Ensure buttons are above images */
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.gallery {
    padding: 20px;
    text-align: center;
}

.gallery-links {
    list-style-type: none; /* Remove bullets */
    padding: 0;
    text-align: center;
}

.gallery-links li {
    margin: 10px 0;
}

.gallery-links li a {
    font-size: 1.2em;
    color: #2c3e50;
    text-decoration: none;
}

.gallery-links li a:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.grid a {
    position: relative;
    display: block;
}

.grid img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    width: 100%;
}

/* Return Link Styles */
.return-link {
    position: absolute;
    top: 10px;
    left: 10px;
}

.return-link a {
    color: white; /* Change text color to white */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    background-color: #2c3e50; /* Same color as the header */
    padding: 5px 10px; /* Add padding for better visibility */
    border-radius: 5px; /* Slightly rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Light shadow for better visibility */
}

.return-link a:hover {
    text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    header h1 {
        font-size: 1.2em;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
