.about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: #F5F4EB;
    color: #4F6F52;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10; /* overlay an element above the header */
}

.about-header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main {
    padding-top: 90px;
}

.about-hero {
    color: #4F6F52;
    display: flex;
    align-items: center;
    min-height: 20vh;
    border-bottom: #9fbba2 solid 1px;
    font-family: 'Playfair Display', serif;
    padding: 90px 0 100px 0;
}

.about-content {
    text-align: center;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
}
.about-content h1 {
    text-align: center;
    font-size: 3.0rem;
    margin-bottom: 20px;
    font-family: Lato, sans-serif;
    line-height: 1.0;
    color: #4F6F52;
}
.about-content p {
    text-align: center;
    font-size: 1rem;
    font-family: Lato, sans-serif;
    color: #4F6F52;
}

.contact-hero {
    color: #4F6F52;
    display: flex;
    gap: 40px;
    margin-top: 120px;
    align-items: flex-start;
}

.contact-hero img {
    width: 300px;
    max-width: 100%;
    margin-top: 140px;
    border-radius: 10%;
    margin-right: 40px;
}

.contact-content {
    width: 50%;
    margin: 0 auto;
}

.contact-content h1 {
    margin-top: 0;
}

#contact-form {
    background: #F5F4EB;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid #D2E3C8;
    display: grid;
    gap: 12px;
}

.contact-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4F6F52;
}

form .contact-detail-value {
    width: 100%;
    color: #4F6F52;
    font-family: Lato, sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
    padding: 16px 14px;
    background-color: #F5F4EB;
    border: 1px solid #D2E3C8;
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-detail-text {
    width: 100%;
    color: #4F6F52;
    font-family: Lato, sans-serif;
    font-size: 1rem;
    margin-bottom: 0;
    padding: 16px 14px;
    background-color: #F5F4EB;
    border: 1px solid #D2E3C8;
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form .contact-detail-value:focus {
    outline: none;
    border-color: #9fbba2;
    box-shadow: 0 0 0 4px #4F6F52;
}

.contact-detail-text:focus {
    outline: none;
    border-color: #9fbba2;
    box-shadow: 0 0 0 4px #4F6F52;
}

#contact-form button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 1rem;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: -12px;
    margin-bottom: 12px;
    font-family: Lato, sans-serif;
}

.contact-detail-text {
    width: 100%;
    color: #4F6F52;
    font-family: Lato, sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    height: 200px;
    padding: 10px;
    background-color: #F5F4EB;
    border: 1px solid #D2E3C8;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 15px;
    font-family: Lato, sans-serif;
}


/* Responsive Design */
@media (max-width: 768px) {
    .about-hero,
    .contact-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-hero {
        min-height: auto;
        padding: 20px 0 0;
    }

    .about-content{
        width: 100%;
    }

     .contact-content {
        width: 100%;
    }
    .about-content h1 {
        font-size: 2rem;
    }

    #contact-form {
        padding: 20px;
        border-radius: 24px;
    }

    .contact-content {
        padding: 0 20px;
    }

    .about-header nav {
        justify-content: space-between;
    }

    .contact-hero {
        gap: 20px;
        margin-top: 40px;
    }

    .contact-hero img {
        margin-right: 0;
    }
}
