/* responsive.css - Fix oversized content on various screens */

/* Global responsive adjustments */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Banner image size controls */
.page-banner {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background-color: transparent;
    max-height: 300px; /* Limit height */
}

/* Section banners (smaller size) */
.section-banner {
    max-width: 75%;
    height: auto;
    margin: 0 auto;
    display: block;
    max-height: 250px; /* Limit height */
}

/* Main banner (original size) */
.main-banner {
    max-width: 100%;
    height: auto;
}

/* Direct image in header fix */
header img {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Limit height */
}

/* Content containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

/* Layout improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Side-by-side content that stacks on mobile */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.flex-item {
    flex: 1 1 300px; /* Base size with flex grow/shrink */
    min-width: 0; /* Allows proper shrinking */
}

/* Responsive typography */
h1 {
    font-size: calc(1.5rem + 1vw);
}

h2 {
    font-size: calc(1.3rem + 0.6vw);
}

p, li, .content-text {
    font-size: calc(1rem + 0.2vw);
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
    .page-banner {
        max-height: 150px; /* Smaller on tablets */
    }
    
    .hide-on-mobile {
        display: none !important;
    }
    
    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        max-height: 100px; /* Even smaller on phones */
    }
    
    .flex-item {
        flex-basis: 100%; /* Full width on small screens */
    }
}