/* Main container - fixed width, centered */
.page-container {
    width: 700px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    background: transparent;
    box-sizing: border-box;
    position: relative;
}

/* Content wrapper for proper centering */
.content-wrapper {
    max-width: 687px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header section */
.header-section {
    display: flex;
    align-items: flex-start;
    gap: 43px;
    margin-bottom: 20px;
    margin-top: 30px;
    margin-left: -5px;
    width: 687px;
}

.logo-container {
    width: 136px;
    height: 135px;
    flex-shrink: 0;
}

.logo-image {
    border: none;
    height: 135px;
    width: 136px;
}

.header-image-container {
    width: 508px;
    height: 132px;
    flex-shrink: 0;
}

.header-image {
    border: none;
    height: 132px;
    width: 508px;
}

/* Green logos section */
.green-logos-section {
    background-color: #e8f5f0;
    border-radius: 8px;
    width: 627px;
    margin-left: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
}

.white-inner-container {
    background-color: white;
    border-radius: 6px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 25px;
}

.bug-logo-container, .plural-logo-container {
    flex-shrink: 0;
}

.bug-logo, .plural-logo {
    border: none;
    height: 60px;
    width: auto;
    max-width: 200px;
}

/* Company info section */
.company-info-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    width: 627px;
    margin-left: 10px;
    margin-bottom: 20px;
    text-align: center;
    padding: 8px 20px;
}

.company-name {
    font-size: 13px;
    color: rgb(88, 77, 77);
    font-family: 'LucidaGrande', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}

.contact-info {
    font-size: 12px;
    color: rgb(88, 77, 77);
    font-family: 'LucidaGrande', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}

.legal-info {
    font-size: 11px;
    color: rgb(88, 77, 77);
    font-family: 'LucidaGrande', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}

/* Main content section */
.main-content-section {
    background-color: #fde6e1;
    border-radius: 8px;
    width: 627px;
    margin-left: 10px;
    margin-bottom: 30px;
    padding: 20px;
    color: rgb(88, 77, 77);
    font-family: 'LucidaGrande', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}

.main-content-section h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.main-content-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 15px;
}

.main-content-section p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 15px;
}

.main-content-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.main-content-section li {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 5px;
}

/* Links */
a {
    color: rgb(88, 77, 77);
    text-decoration: underline;
}

a:visited {
    color: rgb(121, 121, 121);
    text-decoration: underline;
}

a:hover {
    color: rgb(0, 0, 0);
    text-decoration: underline;
}

/* Basic element styles */
body {
    -webkit-text-size-adjust: none;
    padding-left: 1px;
}

div {
    overflow: visible;
}

img {
    border: none;
}

/* Mobile layout with logo overlay - trigger at 700px */
@media screen and (max-width: 700px) {
    .page-container {
        width: 100%;
        max-width: 700px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Header section with background image */
    .header-section {
        height: 132px;
        background-image: url('pix/gp-labyrinth.jpg');
        background-size: 100% auto; /* Scale to full width */
        background-position: left center;
        background-repeat: no-repeat;
        position: relative;
        margin-bottom: 20px;
        display: block;
        gap: 0;
        width: 100%;
        max-width: 687px;
        margin-left: 0;
        box-sizing: border-box;
    }

    /* Hide the original header image container */
    .header-image-container {
        display: none;
    }

    /* Position overlay logo directly on the image */
    .logo-container {
        width: auto;
        height: auto;
    }

    .logo-image {
        max-height: 60px;
        max-width: 60px;
        height: auto;
        width: auto;
        margin-top: 28px;
        margin-left: 10px;
        position: relative;
        z-index: 2;
    }

    .green-logos-section,
    .company-info-section,
    .main-content-section {
        width: 100%;
        max-width: 627px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .bug-logo, .plural-logo {
        max-width: 180px;
        height: auto;
    }

    /* Ensure text doesn't overflow */
    .main-content-section,
    .company-info-section {
        word-wrap: break-word;
    }
}

@media screen and (max-width: 500px) {
    /* Stack bug/plural logos when they get too small */
    .white-inner-container {
        flex-direction: column;
        gap: 15px;
        background: transparent; /* Remove white background */
    }

    .green-logos-section {
        background: transparent; /* Remove green background */
        padding: 10px 0; /* Remove side padding */
    }

    .bug-logo, .plural-logo {
        height: 80px; /* Make larger when stacked */
        max-width: 250px;
    }
}
