

/* Footer Styles */
footer {
    background-color: var(--may-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: calc(100%);
    bottom: 0;
    left: 0;
    border-top: 1px solid var(--secondary-color);
    z-index: 1000; /* Ensure the footer stays on top */
    padding-bottom: 10px;
}

.footer-left {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding-right: 30px;
}

.footer-left p {
    margin: 0;
    padding-top: 10px;
    text-align: justify;
}

.footer-right {
    margin-right: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-right a {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

/* Reset first item margin so icons align nicely */
.footer-right a:first-child {
    margin-left: 0;
}

.footer-right img {
    width: 24px !important;
    height: 24px !important;
    display: block;
    object-fit: contain;
}

/* vCard icon: use SVG as a mask so we can color it with --secondary-color */
/* vCard icon (inline SVG uses currentColor) */
.vcard-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}
.vcard-link img {
    /* hidden by default: mask will render the colored icon */
    display: none;
}

/* Use the external SVG as a mask so the icon is colored via --secondary-color */
.vcard-link::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask: url('/images/vcard2.svg') no-repeat center / contain;
    mask: url('/images/vcard2.svg') no-repeat center / contain;
}

/* Fallback for browsers without mask support: show the inline image */
@supports not (-webkit-mask: url('/images/vcard2.svg') no-repeat) {
    .vcard-link img { display: inline-block; }
    .vcard-link::before { display: none; }
}

.footer-label {
    font-weight: bold;
}
