/* ==========================================================================
   LEGAL LANDING PAGE - CENTERED LAYOUT
   ========================================================================== */
/* Override body width to allow centering */
body {
    width: 100%;
    min-width: 1440px; /* Maintain minimum width for design */
}
/* Main page container - centered with max-width */
#base {
    position: relative; /* Changed from absolute */
    max-width: 1440px;
    margin: 0 auto; /* Center the container */
    padding-top: 88px; /* Space for fixed header */
    padding-bottom: 56px; /* Space for fixed footer */
    min-height: calc(100vh - 144px); /* 88px header + 56px footer */
    font-family: "Roboto-Regular", "Roboto", sans-serif;
}
/* Main content wrapper - flexbox layout */
#base::after {
    content: "";
    display: table;
    clear: both;
}
.content-inner {
    padding-top: 20px;   /* space for top arrow */
    padding-bottom: 20px; /* space for bottom arrow */
}

.main-card {
    width: 95%;
    max-width: 95%;

    min-height: 240px;   /* key change */
    height: auto;        /* allow growth */

    background: #ffffff;

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;

    margin: 16px auto;

    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* better for variable content */
}

/* Optional: multiple cards spacing */
.main-card + .main-card {
    margin-top: 20px;
}

.main-card > * {
    margin-bottom: 8px;
}

.main-card > *:last-child {
    margin-bottom: 0;
}

.landing-card {
    max-width:50%;
    margin:0 auto;
    text-align: center;
}

.landing-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.landing-card p {
    margin-bottom: 16px;
    line-height: 1.5;
}

.group-selection {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.group-option {
    width: 140px;
    text-decoration: none;
    color: #123;
    text-align: center;
    padding: 15px;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.group-option:active {
    transform: scale(0.97);
}

.group-option img {
    width: 128px;
    height: 128px;
    margin-bottom: 10px;
}

.group-option span {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
}

.group-option small {
    display: block;
    line-height: 1.4;
    color: #555;
}

@media (max-width: 400px) {

    .group-selection {
        gap: 12px;
    }

    .group-option {
        width: 120px;
        padding: 12px;
    }

    .group-option img {
        width: 56px;
        height: 56px;
    }
}