.ac-get-departaments,
.ac-get-departaments *,
.ac-get-departaments *::before,
.ac-get-departaments *::after {
    box-sizing: border-box;
}

.ac-get-departaments {
    width: 100%;
    overflow: hidden;
    background: #e5ebef;
    color: #001b4d;
    font-family: var(--tamc-font, "Noto Sans Hebrew", "Noto Sans Display", Arial, sans-serif);
}

.home .ac-get-departaments {
    background: #fff;
}

.ac-get-departaments__inner {
    width: 100%;
    max-width: 1640px;
    margin-inline: auto;
    padding: 30px 20px;
}

.ac-get-departaments__title {
    margin: 0 0 30px;
    color: #001b4d;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.ac-get-departaments__card {
    position: relative;
    min-width: 0;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    border: 3px solid #fbfbfb;
    border-radius: 20px;
    background: #1a4065;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ac-get-departaments__card:hover {
    box-shadow: 0 8px 26px rgb(2 129 209 / 25%);
    transform: translateY(-2px);
}

.ac-get-departaments__card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.ac-get-departaments__card-link:focus-visible {
    outline: 4px solid #001b4d;
    outline-offset: -7px;
}

.ac-get-departaments__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.2s ease;
    -webkit-user-drag: none;
}

.ac-get-departaments__card:hover .ac-get-departaments__image {
    transform: scale(1.02);
}

.ac-get-departaments__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #3580cb -100%, rgb(0 0 0 / 30%) 100%);
    text-align: center;
}

.ac-get-departaments__icon {
    display: block;
    width: 55px;
    height: 55px;
    margin: 0;
    object-fit: contain;
}

.ac-get-departaments__name {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: underline;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ac-get-departaments__more {
    margin-top: 30px;
    text-align: center;
}

.ac-get-departaments__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 325px);
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 3px;
    background: #3580cb;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-get-departaments__button:hover,
.ac-get-departaments__button:focus-visible {
    color: #fff;
    opacity: 0.8;
    transform: translateY(-1px);
}

@media (max-width: 1399px) {
    .ac-get-departaments__inner {
        max-width: 1240px;
    }
}

@media (max-width: 800px) {
    .ac-get-departaments__inner {
        padding-inline: 0;
    }

    .ac-get-departaments__title {
        padding-inline: 20px;
        font-size: 32px;
    }

    .ac-get-departaments__more {
        padding-inline: 20px;
    }
}

@media (max-width: 559px) {
    .ac-get-departaments__title {
        font-size: 24px;
    }

    .ac-get-departaments__card {
        aspect-ratio: 1 / 0.72;
    }

    .ac-get-departaments__name {
        font-size: 20px;
    }

    .ac-get-departaments__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-get-departaments__card,
    .ac-get-departaments__image,
    .ac-get-departaments__button {
        transition: none;
    }
}
