/* General Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.emptyspace {
    width: 100%;
    height: 100px; /* Adjust height as needed */
    background-color: #f4f4f4; /* White background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px; /* Space below header */
}

.emptyspace h1 {
    font-size: 3rem; /* Larger font size for main title */
    color: #333;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 80px; /* Add padding to account for fixed header height */
    line-height: 1.6; /* Improved readability */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation Bar Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #0a0056 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15); /* Slightly increased shadow */
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration:none
}

.logo {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px; /* Spacing between nav items */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px; /* Space for border */
}

.nav-menu a:hover {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

/* Content Sections */

.content-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-block {
    position: relative;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer; /* Indicate clickable */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    min-height: 250px; /* Ensure sufficient height for image */
}

.section-block::before {
    content: ''; /* Re-add the content property */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Initial translucent black */
    opacity: 1; /* Initially visible */
    transition: opacity 0.3s ease;
    z-index: 2; /* Below text, above background image */
}

.section-block h2,
.section-block h3,
.section-block p {
    position: relative;
    z-index: 3; /* Above the overlay */
    color: #fff; /* White text over translucent background */
    text-align: center;
    transition: opacity 0.3s ease;
}

.section-block h2 {
    opacity: 1; /* Always visible heading */
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.section-block h3,
.section-block p {
    opacity: 0; /* Initially hidden */
}

.section-block:hover h3,
.section-block:hover p {
    opacity: 1; /* Show on hover */
}

.section-block:hover::before {
    opacity: 0.7; /* Slightly darker on hover */
    z-index: 2; /* Still below text */
}

.section-block h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.section-block p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Unique Background Images for Sections */
.section-block-1 {
    background-image: url("https://codehs.com/uploads/33be730c674ee97acbc3b56dbc488905");
}

.section-block-2 {
    background-image: url("https://codehs.com/uploads/5125e0d72ec636e621aac1a74c8c1438");
}

.section-block-3 {
    background-image: url("https://codehs.com/uploads/7ea0a359aace14cc9933bc0f08cffb1c");
}

.section-block-4 {
    background-image: url("https://codehs.com/uploads/731b10bae9ff4e89097d4b8f190d2f16");
}

.section-block-5 {
    background-image: url("https://codehs.com/uploads/72c7fd96a03f9f9b400b25ad53e04d11");
}

.section-block-6 {
    background-image: url("https://codehs.com/uploads/aca2203b589224eed6965125275462ff");
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 15px;
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        margin: 0 0 10px 0;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}