:root {
    --main-blue: #1a365d;
    --accent: #00bcd4;
    --white: #fff;
    --gray: #f5f7fa;
    --dark: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    /* This is good, but we need the body to also take full height */
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--gray);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    /* Ensure body takes at least the full viewport height */
    display: flex;
    /* Make body a flex container */
    flex-direction: column;
    /* Stack children vertically */
    overflow-x: hidden;
    /* Already here, keeping it */
}

main {
    flex: 1;
    /* This will make the main content area grow and fill available space */
}

/* Global Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-specific fixes - keep these */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }

    /* Ensure sections don't create extra space */
    section {
        margin-bottom: 0;
    }

    footer {
        margin-bottom: 0;
    }

    /* Specific fix for the iframe within the map-container */
    .map-container {
        height: 200px;
        /* Or whatever height looks good on mobile */
        overflow: hidden;
        /* Hide any overflow */
        border-radius: 8px;
        /* Match your existing styling */
        margin-top: 15px;
        /* Add some space if needed from above elements */
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
        /* Remove default iframe border */
        display: block;
        /* Remove any inline-block spacing issues */
    }
}

/* Footer specific styles to ensure no extra padding/margin */
footer {
    width: 100%;
    /* Ensure footer takes full width */
    margin-top: auto;
    /* Pushes the footer to the bottom when using flexbox on body */
    background-color: var(--main-blue);
    /* Assuming your footer has this background */
    color: var(--white);
    /* Assuming your footer text is white */
    padding: 30px 0;
    /* Adjust padding as needed, but ensure it's controlled */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    /* Allows sections to wrap on smaller screens */
    justify-content: space-around;
    max-width: 1200px;
    /* Max width for content */
    margin: 0 auto;
    /* Center content */
    padding: 0 20px;
    /* Padding on sides for smaller screens */
}

.footer-section {
    flex: 1;
    /* Allow sections to grow */
    min-width: 280px;
    /* Minimum width before wrapping */
    margin-bottom: 20px;
    /* Space between sections on smaller screens */
    padding: 0 10px;
    /* Padding inside sections */
}

/* Ensure the footer-bottom has controlled spacing */
.footer-bottom {
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9em;
}