body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #181a1b;
    margin: 0;
    margin-bottom: 2rem;
    padding: 0;
    color: white;
    overflow: hidden;
}

header {
    background: red;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 2rem;
}

h1 {
    margin: 1rem 0 0 0;
    font-size: 2.5rem;
}

h2 {
    color: #b8860b;
    margin-top: 0rem;
}

.page-flex {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 4rem 9rem; 
    padding: 5rem;
    margin: auto;
    padding-bottom: 100%;
    background: #333;
} 

/* Desktop styles */
main.section {
    background: #181818;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 2rem;
    color: #fff;
    margin: 0;
    height: auto; /* Let JS control height */
    width: 320px;      /* Add this line for consistent width */
    max-width: 90vw;   /* Prevent overflow on small screens */
    box-sizing: border-box;
}

.logo-inline {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: -2px;
    margin-left: 0.5em;
}

/* Mobile styles */
@media (max-width: 800px) {
    body {
        overflow: auto;
    }

    .page-flex {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        font-size: 1em;
    }

    main.section {
        width: 100% !important;   /* Full width on mobile */
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    .header-badge {
        height: 5.5rem; /* Adjust as needed */
        width: auto;
        border-radius: 12px;
        margin-right: 0;
    }

    .header-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: -2rem;
    }
}

.header-badge {
    height: 5.5rem; /* Adjust as needed */
    width: auto;
    border-radius: 12px;
    margin-right: 1.5rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ital {
    font-style: italic;
}
