.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.header h1 {
    text-align: center;
    color: #34495e;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.header h1 span {
    color: #3399ff;
}

/* Table Responsiveness */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures it doesn't get too squashed on mobile */
}

th {
    background-color: #3358ff;
    color: white;
    text-align: left;
    padding: 15px 20px;
    font-size: 1.1rem;
}

td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:nth-child(odd) {
    background-color: #e9e9e9;
}

.reg-title {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.publish-date {
    color: #3377ff;
    font-style: italic;
    font-size: 0.9rem;
}

.view-link {
    color: #33a3ff;
    text-decoration: none;
    font-weight: 500;
}

.view-link:hover {
    text-decoration: underline;
}

/* 1. Ensure the container doesn't have restrictive padding on mobile */
.container {
    width: 100%;
    padding: 20px 15px;
    margin: 0 auto;
}

/* 2. Responsive Table Wrapper */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Adds horizontal scroll if table is too wide */
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#regulationsTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures the table doesn't get "squashed" too much */
}

/* 3. Mobile Specific Adjustments */
@media (max-width: 600px) {
    .header h1 {
        font-size: 22px;
        text-align: center;
    }

    /* Reduce font size for table content on phones */
    #regulationsTable td, 
    #regulationsTable th {
        padding: 10px 8px;
        font-size: 14px;
    }

    .reg-title {
        font-size: 14px;
        display: block;
        line-height: 1.3;
    }

    .publish-date {
        font-size: 11px;
        display: block;
        margin-top: 4px;
        color: #666;
    }

    /* Style the view link to look like a button on mobile for easier tapping */
    .view-link {
        padding: 6px 12px;
        background: #5f4bd8;
        color: white !important;
        text-decoration: none;
        border-radius: 4px;
        font-size: 12px;
    }
}
