/* Basic Reset & Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #FF6433;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #007bff;
}

/* Table Container for Responsiveness */
.table-container {
    overflow-x: auto; /* Enables horizontal scrolling for the table on small screens */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* Remove default table margins */
    background-color: #fff;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Responsive Table (Mobile View) */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block; /* Make all table elements behave like block elements */
    }

    /* Hide table headers (but not display: none;, or accessibility issues ensue) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    table td {
        border: none; /* Remove individual cell borders */
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Make space for the pseudo-element label */
        text-align: right; /* Align content to the right */
    }

    table td:last-child {
        border-bottom: none; /* No border for the last cell in a row */
    }

    /* Use data-label attribute to show column headers as pseudo-elements */
    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left; /* Align label to the left */
        font-weight: bold;
        color: #555;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #FF6433;
    color: #fff;
    margin-top: 20px;
}