/* Reset Styles */
* {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Consistent sizing */
}

/* Body Styles */
body {
    font-family: Arial, sans-serif; /* Font style */
    color: #333; /* Text color */
    background-color: #e2e2e2; /* Background color */
    line-height: 1.6; /* Line spacing */
}

/* Navbar */
nav {
    background-color: #333; /* Background color */
    color: #fff; /* Text color */
    padding: 1em 2em; /* Spacing */
    display: flex; /* Flex layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Spread items horizontally */
}

/* Logo */
nav .logo img {
    height: 50px; /* Set height */
    width: 50px; /* Set width */
    border-radius: 50%; /* Circle shape */
    object-fit: cover; /* Fill circle */
}

/* Navbar Links */
nav ul {
    list-style: none; /* Remove bullets */
    display: flex; /* Flex layout */
    gap: 1em; /* Space between items */
    padding-left: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

nav ul li a {
    color: #fff; /* Text color */
    text-decoration: none; /* Remove underline */
    padding: 0.5em; /* Padding */
    transition: color 0.3s; /* Smooth hover effect */
}

nav ul li a:hover {
    color: #D61D00; /* Hover color */
}

/* Grid Container */
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Reduce to 2 columns to make images larger */
    gap: 15px; /* Space between items */
    max-width: 1200px; /* Increase the grid container width */
    margin: 2em auto; /* Center the grid */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Image Link */
.image-link {
    position: relative;
    width: 100%; /* Ensure images adapt to container size */
    aspect-ratio: 3/2; /* Wider rectangles (adjust as needed) */
    overflow: hidden;
    text-align: center;
    color: white;
}

.image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images fill without distortion */
}

/* Overlay Text */
.image-link .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    padding: 10px 20px;
    border-radius: 5px;
}

.image-link .text-overlay a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem; /* Increase font size for better readability */
    font-weight: bold;
}

.image-link .text-overlay a:hover {
    text-decoration: underline;
}

/* Section Styling */
section {
    padding: 2em; /* Section spacing */
    max-width: 800px; /* Width limit */
    margin: auto; /* Center align */
}

h2 {
    font-size: 1.8em; /* Font size */
    color: #333; /* Color */
    margin-bottom: 0.5em; /* Space below */
    border-bottom: 2px solid #008AC2; /* Bottom border */
}

h3 {
    font-size: 1.2em; /* Subheading size */
    color: #555; /* Subheading color */
    margin-top: 1em; /* Space above */
}

ul {
    list-style-type: square; /* Square bullets */
    padding-left: 1.5em; /* Indent */
    margin-top: 0.5em; /* Space above */
}

/* Footer */
footer {
    background-color: #333; /* Background */
    color: #fff; /* Text color */
    text-align: center; /* Center text */
    padding: 1em 0; /* Padding */
    margin-top: 2em; /* Space above footer */
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack navbar items vertically */
        align-items: flex-start; /* Align items to the left */
    }

    nav ul {
        flex-direction: column; /* Stack nav links */
        gap: 0.5em; /* Smaller gap */
        width: 100%; /* Full width of the navbar */
        padding-left: 0; /* Remove padding */
    }

    .cover-text {
        font-size: 1.5em;
        padding: 1em;
    }

    .cover-image {
        height: 300px; /* Adjust height for smaller screens */
    }

}

@media (max-width: 480px) {
    .cover-image {
        height: auto; /* Let image size adjust naturally */
    }

    .cover-text {
        font-size: 1.2em; /* Adjust font size */
        padding: 0.5em; /* Reduce padding */
    }

    h2 {
        font-size: 1.5em; /* Adjust heading size */
    }

    h3 {
        font-size: 1em;
    }
}
