.contact-padding {
    padding: 60px 0;
}

.contact-white {
    background-color: #0d0d0d;
}

.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-center {
    text-align: center;
}

.contact-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.contact-gradient-blue {
    background: #fae7c1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-top-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.location-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px; /* Nilakihan ang padding */
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px; /* Nilakihan ang gap sa pagitan ng mapa at text */
    max-width: 1000px; /* Nilakihan ang max-width */
    width: 90%; /* Para mas malaki ang card sa mobile/tablet */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.map-and-logo-container {
    position: relative;
    width: 60%; /* Nilakihan ang width ng map container */
    height: 300px; /* Nilakihan ang height ng map container */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff; /* Puti ang background ng mapa */
}

.ph-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%; /* Nilakihan ang mapa mismo para mag-fit sa container */
    height: auto;
    opacity: 1; /* Malinaw na ang mapa */
    filter: invert(100%); /* Nagpapaputi sa mapa */
    pointer-events: none;
    z-index: 1;
}

.location-details {
    text-align: left;
    flex-grow: 1;
    z-index: 4;
}

.location-heading {
    font-size: 1.7em;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: rgb(255, 255, 255); /* Puti ang text */
}

.location-address {
    font-size: 1em;
    line-height: 1.6;
    color: rgb(255, 255, 255); /* Puti ang text */
}

.contact-info-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.phone-button {
    background-color: #2b8bcb;
}

.phone-button:hover {
    background-color: #0f4b72;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.email-button {
    background-color: #2b8bcb;
}

.email-button:hover {
    background-color: #0f4b72;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .location-card {
        max-width: 900px;
        width: 90%;
        padding: 30px; /* Adjusted padding for smaller screens */
        gap: 25px;
    }
    .map-and-logo-container {
        width: 55%; /* Adjusted width for smaller screens */
        height: 250px; /* Adjusted height for smaller screens */
    }
    .ph-map {
        width: 180%; /* Adjusted for smaller screens */
    }
    .location-heading {
        font-size: 1.15em;
    }
    .location-address {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .location-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
        max-width: 95%;
    }

    .map-and-logo-container {
        width: 100%; /* Full width on mobile */
        height: 250px; /* Increased height for mobile */
        margin-bottom: 0;
    }

    .ph-map {
        width: 130%; /* Adjusted for mobile */
        height: 130%;
        object-fit: cover;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .location-details {
        text-align: center;
        order: 2;
    }

    .location-heading {
        font-size: 1.65em;
        font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .location-address {
        font-size: 1.3em;
        text-align:center;
        font-size: 1em;
    }

    .contact-info-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .location-card {
        padding: 25px;
        gap: 25px;
    }

    .map-and-logo-container {
        height: 200px; /* Adjusted for smaller mobile */
    }

    .ph-map {
        width: 150%; /* Adjusted for smaller mobile */
        height: 150%;
    }

    .contact-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}