:root {
    --contact-blue-900: #153b75;
    --contact-blue-700: #1f5ea8;
    --contact-blue-100: #e8f1ff;
    --contact-surface: #ffffff;
    --contact-border: #d7e6fb;
    --contact-text: #1f2937;
    --contact-muted: #4b5563;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--contact-text);
    background: linear-gradient(135deg, #a9c6ee 0%, #bed4f2 55%, #d6e4f7 100%);
    min-height: 100vh;
}

.contact-header {
    background: linear-gradient(180deg, var(--contact-blue-900), var(--contact-blue-700));
    color: #fff;
    padding: 1.6rem 1rem 1.9rem;
    height: 220px;
    box-sizing: border-box;
    position: relative;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 20px rgba(15, 48, 92, 0.25);
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.header-left-links {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: max-content;
    margin-left: calc(150px - (50vw - 50%));
}

.header-left-top,
.header-left-bottom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-left-bottom {
    width: 100%;
}

.header-left-bottom .home-btn {
    flex: 1 1 0;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
}

.header-title-stack {
    position: absolute;
    top: 50%;
    right: 200px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.header-title-stack .nav-links {
    justify-content: center;
    margin-bottom: 0.35rem;
}

.home-btn,
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    height: 38px;
    min-height: 38px;
    padding: 0 1.2rem;
    font-size: 1rem;
    line-height: 1.1;
    border-radius: 999px;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.home-btn:hover,
.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
}

.header-title-stack .nav-link {
    font-weight: 600;
}

.header-left-links .home-btn {
    font-weight: 500;
}

.contact-header .header-left-links > .a11y-toggle-btn {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    height: 38px;
    min-height: 38px;
    padding: 0 1.2rem;
    font-size: 1rem;
    line-height: 1.1;
    border-radius: 999px;
    transition: 0.2s ease;
}

.contact-header .header-left-links > .a11y-toggle-btn:hover,
.contact-header .header-left-links > .a11y-toggle-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
    outline: none;
}

.contact-header h1 {
    margin: 0 0 0.35rem;
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.contact-main {
    width: 100%;
    max-width: 900px;
    margin: 1.6rem auto 2rem;
    padding: 0 1rem;
    display: grid;
    gap: 1rem;
}

.contact-card {
    background: var(--contact-surface);
    border: 1px solid var(--contact-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(21, 59, 117, 0.09);
    padding: 1rem 1.1rem;
}

.contact-card h2 {
    margin: 0 0 0.45rem;
    color: var(--contact-blue-900);
}

.contact-card h3 {
    margin: 0.9rem 0 0.35rem;
    color: var(--contact-blue-900);
    font-size: 1rem;
}

.contact-card .contact-subtitle {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--contact-blue-900);
    line-height: 1.15;
}

.contact-card p {
    margin: 0.2rem 0;
    color: var(--contact-muted);
    line-height: 1.45;
}

.contact-card a {
    color: var(--contact-blue-700);
    font-weight: 700;
}

.donate-btn {
    margin-top: 0.75rem;
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    background: var(--contact-blue-700);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.donate-btn:hover {
    background: var(--contact-blue-900);
}

.contact-footer {
    margin-top: auto;
    text-align: center;
    color: #ffffff;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, var(--contact-blue-900), var(--contact-blue-700));
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.contact-footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .contact-header {
        height: auto;
        min-height: 220px;
    }

    .header-nav {
        flex-direction: column;
        gap: 0.6rem;
    }

    .header-left-links {
        margin-left: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .header-left-top,
    .header-left-bottom {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-header .header-left-links > .a11y-toggle-btn {
        width: auto;
    }

    .header-title-stack {
        position: static;
        transform: none;
        gap: 0.3rem;
    }

    .header-title-stack .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 0.15rem;
    }
}
