/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #e2e2e2;
    line-height: 1.6;
}

/* Navbar */
nav {
    background-color: #333;
    color: #fff;
    padding: 1em 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav .logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #D61D00;
}

/* Banner */
.cover {
    position: relative;
    text-align: center;
    color: white;
    width: 100%; /* Ensure it takes full width */
}

.cover-image {
    width: 100%; /* Full width of the container */
    height: auto; /* Maintain aspect ratio of the image */
    max-height: 400px; /* Optional: limit max height */
    object-fit: cover; /* Ensure it covers the container without distortion */
}

.cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5em 1em;
    width: 90%;
    max-width: 90%; /* Ensure the text doesn't overflow */
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .cover-text {
        font-size: 1.5em;
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .cover-text {
        font-size: 1.2em;
    }
}


/* Section Styling */
section {
    padding: 2em;
    max-width: 800px;
    margin: auto;
    width: 100%;
}

h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #008AC2;
}

h3 {
    font-size: 1.2em;
    color: #555;
    margin-top: 1em;
}

ul {
    list-style-type: square;
    padding-left: 1.5em;
    margin-top: 0.5em;
}

/* Contact Links */
.contact-info p a {
    color: #D61D00;
    text-decoration: none;
}

.contact-info p a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}

/* 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;
    }
}

@media (max-width: 480px) {
    .cover-image {
        height: auto; /* Let image size adjust naturally */
    }

    .cover-text {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1em;
    }
}
