.container {
    width: 100%; /* Set a fixed width for the table */
    margin: 0 auto; /* Center the table */
    border-collapse: separate;
    border-spacing: 5px;
    table-layout: fixed; /* Ensure fixed layout */    
    margin-top: 50px;
}
.section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    text-align: center;
    vertical-align: top;
    height: 100px;
    width: 80px; /* Fixed width for each cell */    
    padding: 10px; /* Add padding to ensure text doesn't touch borders */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.section:hover {
    transform: translateY(-5px);
    background-color: #e0e0e0; /* Change background color on hover */
}

.section a,
.section .main-section {
    display: block;
    padding: 0px; /* Adjust padding */
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.section i {
    margin-right: 10px;
}

.sub-section {
    display: none;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.section:hover .sub-section {
    display: block;
}

.main-section:hover + .sub-section,
.sub-section:hover {
    display: block;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%; /* Adjust table width for smaller screens */
        border-spacing: 10px; /* Adjust border spacing for mobile */
    }

    .section {
        width: calc(100% - 20px); /* Adjust cell width for smaller screens */
    }    
}