/* =========================================
   DYNAMIC WORKSTATIONS TABBED CONTENT
   ========================================= */


/* --- TAB LAYOUT / STRUCTURE --- */

.hhs-dynamic-workstations-grid .hhs-tab-wrapper {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    width: 100%;
    justify-content: stretch;
}

.hhs-dynamic-workstations-grid .hhs-tab-wrapper li {
    margin: 0;
    padding: 0;
    flex: 1 1 50%;
}

.hhs-dynamic-workstations-grid .hhs-tab-wrapper button {
    width: 100%;
    display: block;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
}

/* Ensures tabs sit flush next to each other */
.hhs-dynamic-workstations-grid .hhs-tab-wrapper li + li {
    margin-left: 0;
}

/* Panel visibility controlled by JS */
.hhs-dynamic-workstations-grid .panel {
    display: none;
    padding: 0;
}

.hhs-dynamic-workstations-grid .panel.is-active {
    display: block;
}


/* --- DYNAMIC GRID CARD STYLES --- */

/* Ensures the columns flex naturally within the Bootstrap row */
.hhs-dynamic-workstations-grid .item-card {
    display: flex;
    margin-bottom: 40px;
}

/* The card shell: forces full height and acts as a vertical flex column */
.hhs-dynamic-workstations-grid .inner-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hhs-dynamic-workstations-grid .inner-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Pulls the image to the exact edges of the padding */
.hhs-dynamic-workstations-grid .image-wrapper {
    margin: -30px -30px 25px -30px;
}

/* Uniform image sizing */
.hhs-dynamic-workstations-grid .image-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

/* Flex-grow pushes the CTA section down */
.hhs-dynamic-workstations-grid .text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hhs-dynamic-workstations-grid .card-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
}

.hhs-dynamic-workstations-grid .card-title a {
    color: inherit;
    text-decoration: none;
}

.hhs-dynamic-workstations-grid .card-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Docks the button area to the bottom */
.hhs-dynamic-workstations-grid .action-buttons {
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
}

.hhs-dynamic-workstations-grid .action-buttons a {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 12px 20px;
    box-sizing: border-box !important;
    margin: 0 !important;
}


/* --- OPTIONAL RESPONSIVE TIDY-UP --- */

@media (max-width: 767px) {
    .hhs-dynamic-workstations-grid .hhs-tab-wrapper {
        flex-direction: column;
    }

    .hhs-dynamic-workstations-grid .hhs-tab-wrapper li {
        flex: 1 1 100%;
    }

    .hhs-dynamic-workstations-grid .image-wrapper img {
        height: 260px;
    }
  
  .hhs-dynamic-workstations-grid .tab-description {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

    /* NEW SPACING */
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px 20px;
}
