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

/* Body Styling */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    text-align: center;
}

/* Header Styling */
header {
    padding: 20px 0;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    font-family: 'Libre Baskerville', serif;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
}

.nav-link:hover {
    color: #555;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.hero img {
    width: 110%; /* Make it 10% wider than the content below */
    max-width: 880px; /* Ensure it doesn't stretch too far on large screens */
    height: auto;
    border-radius: 10px;
}

/* Content Styling */
.content {
    max-width: 800px; /* This controls the width of the text below */
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Overlapping Header */
.content h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
    position: relative;
    margin-top: -50px; /* Moves the header upward to overlap the hero image */
    z-index: 1; /* Ensures the header is above the image */
    background-color: white; /* Adds a background to prevent text blending into the image */
    display: inline-block; /* Prevents the background from stretching across the width */
    padding: 0 10px; /* Adds padding around the text */
}

h2 {
    font-size: 1.8rem;
    margin-top: 20px;
    color: #800000;
    font-family: 'Libre Baskerville', serif;
}

h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    font-family: 'Libre Baskerville', serif;
    color: #333;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

a {
    color: #800000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.mailing-link {
    font-weight: bold;
    text-decoration: underline;
}

/* Footer Styling */
footer {
    margin: 30px 0;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* Responsive Design for Mobile Devices */
@media screen and (max-width: 768px) {
    .hero img {
        width: 100%; /* Mobile: Let image span full width */
        max-width: none;
    }

    .content h1 {
        margin-top: -30px; /* Adjust overlap for smaller screens */
        font-size: 2rem; /* Scale down heading font size */
        padding: 0 5px; /* Reduce padding around text */
    }

    header {
        padding: 15px 0;
    }

    nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .content {
        padding: 10px;
        max-width: 90%;
    }

    footer {
        margin: 20px 0;
    }

    .social-icons img {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.8rem;
    }

    .content {
        padding: 5px;
        max-width: 95%;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons a {
        margin: 5px;
    }
}