.accordion-table {
    display: flex;
    width: 100%;
    height: 100%;
    border-top: 2px solid;
}

.table__cell {
    position: relative;
    display: flex;
    width: 25%; /* Default width for each cell */
    align-items: flex-start; /* Align items to the top */
    justify-content: center; /* Center items horizontally */
    transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1);
    /* 	transition: width 500ms ease-in-out, height 500ms ease-in-out; */
}

/* Specific background colors for each section */
.table__cell:nth-child(1) {
    background-color: #F5F5F5; /* Color for first cell */
}
.table__cell:nth-child(2) {
    background-color: #FFFF00; /* Color for second cell */
}
.table__cell:nth-child(3) {
    background-color: #D7E6FF; /* Color for third cell */
}
.table__cell:nth-child(4) {
    background-color: #F5F5F5; /* Color for fourth cell */
}
.table__cell:nth-child(5) {
    background-color: #FFFF00; /* Color for fifth cell */
}
.table__cell:nth-child(6) {
    background-color: #D7E6FF; /* Color for sixth cell */
}

/* Adjust active section styles */
.table__cell.active {
    min-width: 70%; /* Active section takes 70% */
    border-left: 2px solid #1e3e37;
}

.table__cell:first-child {
    border-left: 0 !important;
}

/* Non-active sections take 10% */
.table__cell:not(.active) {
    width: 10%; /* Non-active sections take 10% */
    border-left: 2px solid #1e3e37;
}

@media screen and (max-width: 768px) {
    .table__cell {
        border-left: 0 !important;
        border-top: 2px solid #1e3e37;
    }

    .table__cell:first-child {
        border-top: none;
    }

    .table__cell .main-column {
        padding-bottom: 30px;
    }
}
/* Flexbox for sub and main columns */
.sub-column {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Space between the elements */
    height: 100%; /* Ensure it takes the full height */
    width: 120px;    
    text-align: center; /* Center the text if needed */
    padding: 20px 0px;    
}
.sub-column .num {
    margin-bottom: auto; /* Push the number span to the top */
    background: transparent;
    font-family: 'TroisMilleRegular';
    font-size: 32px;
    font-weight: 400;
    color: #1E3E37;
    text-align: center;
    margin-left: -20px;    
}

.sub-column .loc {
    margin-top: auto; /* Push the location span to the bottom */
    transform: rotate(270deg);
    transform-origin: left top;
    white-space: nowrap;
    margin-left: 20px;
    background: transparent;
    font-family: 'TroisMilleRegular';
    font-size: 32px;
    font-weight: 400;
    color: #1E3E37;
}
.main-column {
    width: 80%; /* Main-column takes 80% of the active cell */
    padding: 30px 0px 0px; /* Optional padding for aesthetics */
    display: none; /* Hide by default */
    min-height: 812px;
}
.main-column .inner-column {
    background: transparent;
    width: 75%;    
}
.main-column h2 {
    font-family: 'TroisMilleRegular';
    font-size: 48px;
    font-weight: 400;
    color: #1E3E37;
    background: transparent;    
}
.main-column p {
    background: transparent;
    color: #1E3E37;
    font-family: "Montserrat", system-ui;
    font-size: 18px;
    font-weight: 500;
}
.main-column img {
    background: transparent;
    width: 100%;
}
/* Show main-column only if parent is active */
.table__cell.active .main-column {
    display: block; /* Show the main column when active */
}
/* Span styles for transitions */
.table__cell span {
    opacity: 1;
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0;
}
.table__cell.active span {
    opacity: 1;
    transition-delay: 300ms;
}

/* New custom accordion CSS updates */
/* .accordion-table.accordion-table-custom .main-column .inner-column {
    min-width: unset !important;
    width: 80%;
} */
@media screen and (min-width: 768px) {
    .accordion-table.accordion-table-custom .table__cell.active {
        /* width: 100%; */
        width: var(--customWidth, 100%) !important;
    }
    .accordion-table-custom .table__cell:not(.active) {
        width: 10% !important;
    }
    .accordion-table.accordion-table-custom {
        flex-wrap: nowrap;
        overflow: hidden;
    }
}
@media screen and (max-width: 767px) {
    .accordion-table.accordion-table-custom .sub-column .num {
        margin-right: 20px;
    }
    .accordion-table.accordion-table-custom .sub-column .loc {
        white-space: break-spaces;
    }
    .accordion-table-custom .acc-inner-title {
        font-size: 40px;
        line-height: 1;
    }
    .accordion-table-custom .acc-tab-content {
        margin-bottom: 20px !important;
    }
    .accordion-table-custom .active .sub-column {
        padding-bottom: 0px !important;
    }
    .accordion-table.accordion-table-custom .sub-column .loc, .accordion-table.accordion-table-custom .sub-column .num {
        font-size: 28px;
        line-height: 1.15;
    }
}