.mem {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: 'Roboto', Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: auto; /* Enables horizontal scroll */
}

/* Wrap table inside a scrollable container if needed */
.mem table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Prevents columns stacking on small screens */
}

/* Table header */
th {
    background-color: #dd0000;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

/* Table data cells */
td {
    padding: 12px 15px;
    border-bottom: 1px solid #e6e6e6;
    color: #444;
}

/* Alternate row color */
tr:nth-child(even) {
    background-color: #fafafa;
}

/* Hover effect */
tr:hover {
    background-color: #f0f0f0;
}

/* Special row style */
.membership-header {
    background-color: #eeeeee;
    color: #000000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
}

.membership-header td {
    padding: 15px;
}

/* Download button style */
.download-btn {
    display: block;
    width: 200px;
    max-width: 90%;
    margin: 30px auto;
    padding: 12px;
    background-color: #444;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #222;
}

/* Footer spacing */
.footer {
    margin-top: 30px;
}

/* Media Query for Small Devices */
@media only screen and (max-width: 600px) {
    .mem {
        padding: 10px;
        overflow-x: auto;
    }

    .mem table {
        min-width: 600px; /* Keep structure for horizontal scroll */
    }

    th, td {
        font-size: 13px;
        padding: 10px;
    }

    .download-btn {
        font-size: 14px;
    }
}
