body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-page {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-header {
    background-color: rgba(255, 255, 255, 0.8); /* Light background with higher opacity */
    color: #333; /* Dark text color */
    padding: 1rem 0;
    text-align: center;
}

.home-header h1 {
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    color: #333; /* Dark text color for links */
    text-decoration: none;
}

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

.home-main {
    flex: 1;
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align sections */
    position: relative;
}

.home-section {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.7); /* Increased opacity for better readability */
    padding: 2rem; /* Increased padding for taller sections */
    border-radius: 8px;
    color: white; /* Ensure text is white for better contrast */
    max-width: 800px; /* Restrict the width of sections */
    width: 100%; /* Ensure sections take full width up to max-width */
    box-sizing: border-box; /* Include padding and border in width calculation */
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-section.active {
    opacity: 1;
}

.home-section h2 {
    font-weight: bold; /* Increase font weight for better readability */
    margin-bottom: 1rem;
}

.home-section p {
    margin-bottom: 1rem;
}

.home-section .section-image {
    max-width: 200px; /* Decreased max width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.home-section .section-link {
    color: #4CAF50; /* Link color */
    text-decoration: none;
    font-weight: bold;
}

.home-section .section-link:hover {
    text-decoration: underline;
}

.home-footer {
    background-color: rgba(255, 255, 255, 0.8); /* Light background with higher opacity */
    color: #333; /* Dark text color */
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
