.contacts-table {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add drop shadow */
    transition: box-shadow 0.3s ease;
}

.contacts-table:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhance shadow on hover */
}

.contact-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease; /* For smooth hover transition */
}

.contact-row:hover {
    background-color: #f0f8ff; /* Subtle blue highlight */
}

.contact-office {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* Four columns */
    gap: 10px;
    align-items: center;
}

.contact-name {
    text-align: left; /* Left-aligned name */
    color: #333;
}

.contact-email {
    text-align: center; /* Center-aligned email */
    color: #0066cc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-email .email-icon {
    margin-right: 5px; /* Spacing between the icon and email */
    color: #0066cc;
}

.contact-email a {
    color: #0066cc;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-phone {
    text-align: right; /* Right-aligned phone */
    color: #555;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-phone .phone-icon {
    margin-right: 5px;
    color: #333;
    display: inline-block; /* Only displays when phone exists */
}

.contact-vcard {
    text-align: center; /* Right-aligned vCard */
}

.contact-vcard a {
    color: #333;
    text-decoration: none;
}

.contact-vcard a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 15px 0;
}

/* Responsive styling for mobile portrait view */
@media (max-width: 768px) {
    .contact-details {
        display: block;
        text-align: center; /* Center align all fields for mobile */
    }

    .contact-name,
    .contact-email,
    .contact-phone,
    .contact-vcard {
        margin-bottom: 10px;
    }

    .contact-phone {
        justify-content: center; /* Center align the phone field */
    }

    .contact-phone .phone-icon {
        margin: 0 5px 0 0; /* Adjust spacing for center alignment */
    }

    .contact-office {
        font-size: 16px;
    }

    .contact-row {
        padding: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #ddd;
        background: #fff;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .contact-row:hover {
        box-shadow: none; /* Disable hover effect for mobile */
    }
}

