.text-cards {
    background: var(--color-gray-light-bg);
}

.text-card-slider .slick-slide {
    width: 290px;
    margin: 0 17px;
    height: auto;
}

.text-card-slider .slick-slide>* {
    height: 100%;
}

.text-card-slide {
    height: 100%;
    position: relative;
}

.text-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--color-white);
    border-radius: 10px;
    height: 100%;
    position: relative;
    padding: 20px 20px;
    transition: box-shadow 0.3s ease-in-out;
}

.text-card .btn,
.text-card-slide .btn {
    /* position: absolute;
    bottom: 20px;
    left: 20px; */
    background: var(--color-white);
    color: var(--color-blue-primary);
    border: 1px solid var(--color-blue-primary);
    padding: 4px 35px 4px 19px;
    font-weight: 500;
    font-size: 16px;
}

.text-card .btn:after,
.text-card-slide .btn:after {
    color: var(--color-orange-light);
    font-size: 8px;
    right: 19px;
}

.text-card__link {
    margin-top: auto;
}

.text-card-slider {
    margin-right: -22px;
}

.text-cards__heading {
    margin: 0 0 50px;
}

.text-card__tag {
    align-self: flex-start;
    background: rgba(254, 59, 0, 0.15);
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 600;
    padding: 2px 15px;
    border-radius: 5px;
    display: inline-block;
    margin: 0 0 10px;
    font-family: var(--font-secondary); 
}

.text-card h3,
.home .text-card  h3:not(.h4) {
    font-size: 26px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
    line-height: 1.269em;
    transition: color 0.3s ease-in-out;
}

.text-card p {
    font-size: 16px;
    color: #2D2D2D;
    font-weight: 400;
    margin: 0;
}

.text-card-slider .slick-track {
    display: flex;
}

.text-card .js-labor-law-popup-trigger {
    background: none;
    border: 0;
    color: var(--color-black);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    padding-inline: 0;
}

.modal-popup-container.is-labor-law-popup {
    margin-left: auto;
    margin-right: auto;
    max-width: 850px;
    width: 100%;
}

@media(min-width: 768px) {
    .text-card-slider {
        margin-right: -52px;
    }

    .text-cards--inner .text-card h3 {
        font-size: 22px;
    }

    .text-cards--inner .text-cards__heading h2 {
        font-size: 38px;
    }
}

@media(min-width: 1200px) {
    .text-card-slider {
        margin: -15px -17px;
    }

    .text-card-slider .slick-slide {
        margin: 15px 17px;
    }

    .text-card:hover {
        box-shadow: 0px 0px 15px rgba(29, 43, 56, 0.23);
    }

    .text-card:hover h3 {
        color: var(--color-blue-primary);
    }

    .text-card-slide:hover .btn {
        background: var(--color-blue-primary);
        color: var(--color-white);
        border-color: var(--color-blue-primary);
    }

    .text-card-slide:hover .btn:after {
        color: var(--color-white);
    }

    .text-cards__heading {
        padding-right: 432px;
        position: relative;
    }

    .text-cards__heading .btn {
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .text-cards__heading p {
        margin: 0;
    }

    .text-cards--homepage {
        padding-top: 143px;
    }

    .text-cards--inner .text-cards__heading h2 {
        font-size: 48px;
    }

    .text-cards--inner .text-card h3 {
        font-size: 26px;
    }
}

/* Labor Law Modal Styles */

.is-labor-law-popup.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--color-gray-light-bg);
    border-top: 3px solid var(--primary-color, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.is-labor-law-popup.is-loading::after {
    background: var(--color-white);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Labor Law Modal Content */
.labor-law-modal-content {
    padding: 0;
    line-height: 1.6;
}

.labor-law-modal-content p {
    margin-bottom: 1rem;
}

.labor-law-modal-content p:last-child {
    margin-bottom: 0;
}

.labor-law-modal-content.has-js-scrollable-content {
    max-height: 400px;
    padding-right: 35px;
    overflow-y: auto;
}

.is-labor-law-popup .modal-title {
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .labor-law-modal-content.has-js-scrollable-content {
        max-height: 300px;
    }
}