* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column; /* Makes the body a flex container to handle content and footer positioning */
    min-height: 100vh; /* Ensures body height covers full viewport height */
    font-family: 'Arial', sans-serif;
    color: #fff;
    background: url(../index_image/bk_1_1.jpg);
    background-size: cover;
}

header {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav h1 {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

nav ul li {
    margin: 0 15px;
    font-weight: bold;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    padding: 10px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #1e90ff;
    border-radius: 5px;
}

main {
    flex: 1; /* Allows main content to grow and fill available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding to prevent overflow on smaller screens */
}

.hero {
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #1e90ff;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1c86ee;
}

footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to the bottom of the page */
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer a {
    color: #1e90ff;
    text-decoration: none;
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column; /* Stack header elements vertically */
        align-items: center;
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0; /* Add margin for space between stacked items */
    }

    main {
        padding: 40px 20px; /* Increase padding for better appearance */
    }

    .hero h2 {
        font-size: 1.8em; /* Smaller font size on mobile */
    }

    .cta-button {
        padding: 12px 24px; /* Smaller button size on mobile */
        font-size: 1em;
    }
}
