body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Lato', Arial, sans-serif;
    box-sizing: border-box;
    background-color: #f7f7f5;
    color: #2d3748;
}

*, *::before, *::after {
    box-sizing: inherit;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 60px;
    margin-top: 110px;
}

.contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px; /* Consistent max-width with other sections */
    padding: 0 20px;
}

.contact h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.2em;
    margin-bottom: 0;
    color: #003366;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.contact-info-standalone {
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 860px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-info-block {
    flex: 1;
    min-width: 200px;
    padding: 28px 24px;
    text-align: center;
    background-color: white;
    border-radius: 2px;
    border-top: 3px solid #003366;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.contact-info-block h3 {
    font-family: 'Merriweather', serif;
    margin: 0 0 12px;
    font-size: 1em;
    color: #003366;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.contact-info-block p {
    margin: 0;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.65;
}

.contact-info-block a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-block a:hover {
    color: #003366;
}

.map-container {
    position: relative;
    width: 100%;
    height: 380px;
    margin-bottom: 0;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    backdrop-filter: blur(5px); /* Blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: 600; /* Bold font weight for emphasis */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Heading Container */
.heading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Animated Separation Line */
.separation-line {
    width: 56px;
    height: 3px;
    background-color: #b8983a;
    margin: 20px auto 0;
    display: block;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s ease-in-out;
}

.separation-line.animate {
    transform: scaleX(1);
}

@keyframes line-grow {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

@media (max-width: 768px) {
    main {
        margin-top: 100px;
    }

    .contact h2 {
        font-size: 1.8em;
    }

    .contact-info-standalone {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .contact-info-block {
        min-width: unset;
    }
}