html {
    height: 100%;
}

body {
    margin: 0;
    scroll-behavior: smooth;
}

main {
    flex: 1;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 80px;   /* Topbar height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header{
    --page-header-image: url("images/contact-banner.jpg");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h2 {
    color: #004d99;
}

/* Topbar / menu button / sidebar are now defined once in
   common.css (linked after this file), so contact.css no
   longer duplicates them here. The old copy had a stale,
   much lower z-index (15) and a different menu-btn position,
   which was dead code as long as common.css loads after this
   file, but was removed to avoid any future regressions. */

/* Prevent Layout Shift */
.main-content {
    margin-top: 55px;
}

/* Page section animation */
.page-section {
    display: none;
}
.page-section.active-section {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {opacity:0; transform:translateY(7px);}
    to {opacity:1; transform:translateY(0);}
}

.section {
    margin-bottom: 40px;
}

.section p {
    line-height: 1.6;
}

.footer {
    background: #004d99;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer p {
    margin: 0;
}
/* =====================================================
   MOBILE RESPONSIVE OVERRIDES
   Desktop rules above are untouched.
   ===================================================== */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h2 {
        font-size: 1.3em;
    }
}