.atl-context-section {
    padding: 60px 0;
}

.atl-context-head {
    text-align: center;
}

.atl-context-head h2 {
    color: var(--text-primary);
}

.atl-context-head p {
    color: var(--text-primary);
}

.atl-context-tabs-wrap {
    width: 100%;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.atl-context-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.atl-context-tabs {
    position: relative;
    width: max-content;
    min-width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 45px;
}

.atl-context-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 20px 3px;
    border: 0;
    background: transparent;
    color: #979797;
    font: 400 18px/1.2 "Mallory", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: color .3s ease;
    text-decoration: none;
}

.atl-context-tab:hover {
    color: var(--text-primary);
}

.atl-context-tab.active {
    color: var(--text-primary);
}

.atl-context-tab-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    pointer-events: none;
    transition:
        left .4s cubic-bezier(.4, 0, .2, 1),
        width .4s cubic-bezier(.4, 0, .2, 1);
}

.atl-context-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px 22px;
    align-items: stretch;
}

.atl-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.atl-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, .07);
}

.atl-context-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
     display: flex;
    flex-direction: column;
    height: 100%;
}

.atl-context-card.is-hidden {
    display: none;
}

.atl-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
}

.atl-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.atl-card:hover
.atl-card-media img {
    transform: scale(1.05);
}

.atl-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    background: var(--text-secondary);
    color: var(--text-primary);
    font: 400 12px/1.2 "Mallory", sans-serif;
    text-transform: uppercase;
}

.atl-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    padding: 15px;
    border: solid #dddddd;
    border-width: 0 1px 1px;
    box-sizing: border-box;
}

.atl-card-body h4 {
    min-height: 70px;
}

.atl-card-body h4, .atl-card-body p {
   color: var(--text-primary); 
}

.atl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #dddddd;
}

.atl-card-link {
    color: var(--primary);
    font: 600 16px/1.2 "Mallory", sans-serif;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .3s ease;
}

.atl-context-mobile-filter {
    display: none;
}

.atl-context-mobile-select {
    font: 400 16px/1.2 "Mallory", sans-serif;
}


@media (max-width: 1200px) {

    .atl-context-tabs {
        gap: 30px;
    }


    .atl-context-grid {
        gap: 20px;
    }

    .atl-card-body h4 {
       min-height: 100px;
    }

}


@media (max-width: 991px) {


    .atl-context-tabs {
        justify-content: flex-start;
        gap: 25px;
    }

    .atl-context-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .atl-card-body h4 {
       min-height: 80px;
    }

}


@media (max-width: 768px) {


    .atl-context-tab {
        padding: 15px 2px 14px;
        font: 400 16px / 1.2 "Mallory", sans-serif;
       
    }

    .atl-context-grid {
        gap: 18px;
    }

     .atl-context-tabs-wrap {
        display: none;
    }

    .atl-context-mobile-filter {
        display: block;
        width: 100%;
        margin-bottom: 25px;
    }

    .atl-context-mobile-select-wrap {
        position: relative;
        width: 100%;
    }

    .atl-context-mobile-select {
        width: 100%;
        height: 50px;
        padding: 0 48px 0 16px;
        border: 2px solid var(--primary);
        border-radius: 0;
        color: var(--text-primary);
        outline: 0;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    .atl-context-mobile-arrow {
        position: absolute;
        top: 50%;
        right: 18px;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        transform:
            translateY(-70%)
            rotate(45deg);
        pointer-events: none;
    }

}

@media (max-width: 575px) {

    .atl-context-grid {
        grid-template-columns: 1fr;
    }

    .atl-card-body h4 {
        min-height: 0px;
        margin-bottom: 10px;
    }


}