.mj-footer {
    font-family: var(--mj-font, 'DM Sans', sans-serif);
    color: #fff;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.mj-footer * { box-sizing: border-box; }

.mj-footer-main {
    background: linear-gradient(135deg, #0D2E2E 0%, #1B5E5E 40%, #2A7A6E 100%);
    padding: 72px 40px 48px;
    position: relative;
    overflow: hidden;
}

.mj-footer-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 60%);
    mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 0%, transparent 60%);
    pointer-events: none;
}

.mj-footer-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,46,46,0.6) 0%, rgba(27,94,94,0.3) 50%, rgba(42,122,110,0.2) 100%);
}

.mj-footer-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 60px;
}

.mj-footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.mj-footer-brand p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 300px;
}

.mj-footer-brand-name {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mj-footer-logo-img { height: 70px; width: auto; display: block; }

.mj-footer-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.mj-footer-brand-name span { color: #FF9500; font-style: italic; }

.mj-footer-social { display: flex; gap: 12px; }

.mj-footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background 0.3s, opacity 0.3s, transform 0.3s;
}

.mj-footer-social a:hover {
    background: #FF9500;
    border-color: #FF9500;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,149,0,0.3);
}

.mj-footer-social a svg { width: 18px; height: 18px; fill: currentColor; }

.mj-footer-col__title {
    font-family: var(--mj-font, 'DM Sans', sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 24px;
    display: block;
}

.mj-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mj-footer-col li { margin-bottom: 14px; }

.mj-footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-block;
    margin: -6px -12px;
}

.mj-footer-col a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mj-footer-media {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.mj-footer-media-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    margin-bottom: 24px;
}

.mj-footer-media-logos,.mj-footer-media-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px 18px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.mj-footer-media-names span {
    font-family: var(--mj-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    letter-spacing: -0.5px;
    transition: color 0.3s;
    cursor: pointer;
}

.mj-footer-media-names span:hover { color: rgba(255,255,255,0.8); }
.mj-footer-media-names span.fp-press-name--active { color: rgba(255,255,255,0.8); }

.mj-footer-media-quote {
    margin-top: 12px;
    min-height: 2.6em;
    text-align: center;
}
.mj-footer-media-quote span {
    font-size: .82rem;
    font-style: italic;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: block;
    transition: opacity .25s ease;
}
.mj-footer-media-quote span.fading { opacity: 0; }

.mj-footer-media-more {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.mj-footer-media-more:hover { color: #FF9500; }

.mj-footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mj-footer-copyright { font-size: 13px; color: rgba(255,255,255,0.45); margin: 0; }
.mj-footer-legal { display: flex; gap: 24px; }

.mj-footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: opacity 0.2s;
}

.mj-footer-legal a:hover { color: rgba(255,255,255,0.6); }

.mj-footer-charity {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mj-footer-charity a { color: rgba(255,255,255,0.4); text-decoration: none; }
.mj-footer-charity a:hover { color: #FF9500; }

.mj-footer-charity-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -1px;
    margin-left: 4px;
}

@media (max-width: 900px) {
    .mj-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .mj-footer-links-group { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
    .mj-footer-main { padding: 56px 24px 40px; }
}

@media (max-width: 600px) {
    .mj-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .mj-footer-links-group { grid-template-columns: 1fr 1fr; gap: 32px; }
    .mj-footer-bg { width: 100%; height: 50%; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 80%); mask-image: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 80%); }
    .mj-footer-main { padding: 48px 20px 36px; }
    .mj-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .mj-footer-legal { justify-content: center; }
    .mj-footer-media-logos,.mj-footer-media-names { gap: 14px; }
    .mj-footer-media-names span { font-size: 1.2rem; }
}

/* Accessibility: Focus styles */
.mj-footer-media-names span:focus-visible,
.mj-footer-media-more:focus-visible,
.mj-footer-legal a:focus-visible,
.mj-footer-bottom a:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
    border-radius: 4px;
}
