/* CSS for Our Expertise Block */
.ahtl__expertise {
    padding: 80px 0;
    max-width: 100% !important;
    overflow: hidden;
    background: #F6F6F7;
}

.ahtl__expertise .container {
    max-width: var(--container-page);
}

/* Top Section */
.ahtl__expertise .expertise__top {
    text-align: center;
    margin-bottom: 48px;
}

.ahtl__expertise .expertise__subtitle {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    margin-bottom: 24px;
    color: #286CFF;
}

.ahtl__expertise .expertise__title {
    font-weight: 600;
    font-size: 48px;
    line-height: 140%;
    text-align: center;
    color: #1A2632;
    margin: 0;
    margin-bottom: 24px;
}

/* Tabs */
.ahtl__expertise .expertise__tabs {
    margin-bottom: 24px;
}

.ahtl__expertise .expertise__tab-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 4px;
    gap: 12px;
    border: 1.5px solid #F1F2F3;
    border-radius: 8px;
    width: max-content;
    margin: 0 auto;
}

.ahtl__expertise .expertise__tab-item {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #989DA3;
    transition: all 0.3s ease;
    text-align: center;
    width: max-content;
    padding: 10px 24px;
    border-radius: 4px;

}

.ahtl__expertise .expertise__tab-item--active {
    color: #FFF;
    background: #1A2632;

}

.ahtl__expertise .expertise__tab-mobile-selected {
    display: none;
}

/* Cards */
.expertise__panel.active {
    min-height: 300px;
}

.ahtl__expertise .swiper,
.ahtl__expertise .expertise__card-list {
    overflow: visible;
}

.ahtl__expertise .expertise__card {
    flex-basis: 302px !important;
    height: 480px;
    position: relative;
    color: #1A2632;
    cursor: pointer;
    perspective: 1000px;
}

.ahtl__expertise .expertise__card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    background: #FFF var(--card-bg) center/cover no-repeat;
}

.ahtl__expertise .expertise__card:hover .expertise__card-inner {
    transform: rotateY(180deg);
    box-shadow: inset 0px 4px 20px rgba(255, 255, 255, 0.5);
}

.ahtl__expertise .expertise__card-default {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.ahtl__expertise .expertise__card-number {
    font-weight: 600;
    font-size: 64px;
    line-height: 120%;
    letter-spacing: -0.002em;
    color: #A7D8FF;
    padding: 24px;
    display: none;
}

.ahtl__expertise .expertise__card-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
}

.ahtl__expertise .expertise__card-icon {
    width: 48px;
    height: 48px;
    background: #286CFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.ahtl__expertise .expertise__card-icon img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.ahtl__expertise .expertise__card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 140%;
    color: #1A2632;
}

.ahtl__expertise .expertise__card-hover .expertise__card-title {
    color: #fff;
    margin-bottom: 12px;
}

/* Hover State */
.ahtl__expertise .expertise__card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 3;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    inset: 0;
    background: linear-gradient(336.51deg, #8CCBFF 0%, #1460C5 48.92%, #152C8B 98.75%);
}

/* Removed old hover transform */

.ahtl__expertise .expertise__card-hover .expertise__card-info {
    /* Info container expands to take available space */
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 16px;
    justify-content: space-between;
    height: 100%;
}


/* Removed old hover visibility */

.expertise__card-info--top {}

.ahtl__expertise .expertise__card:hover .expertise__card-info--top {}


.ahtl__expertise .expertise__card-hover-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    color: #1A2632;
    margin-bottom: 12px;
}

.ahtl__expertise .expertise__card-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #F6F6F7;
    margin: 0;
}

.ahtl__expertise .expertise__card-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    height: 48px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    text-align: center;
    color: #fff;
    text-decoration: none;
    margin-top: auto;
}

.ahtl__expertise .expertise__card-link-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.2428 4.41083C10.5682 4.08539 11.0958 4.08539 11.4213 4.41083L16.4213 9.41083C16.5776 9.56711 16.6654 9.77907 16.6654 10.0001C16.6654 10.2211 16.5776 10.4331 16.4213 10.5893L11.4213 15.5893C11.0958 15.9148 10.5682 15.9148 10.2428 15.5893C9.91734 15.2639 9.91734 14.7363 10.2428 14.4108L13.8202 10.8334L4.16536 10.8334C3.70513 10.8334 3.33203 10.4603 3.33203 10.0001C3.33203 9.53985 3.70513 9.16675 4.16536 9.16675L13.8202 9.16675L10.2428 5.58934C9.91734 5.2639 9.91734 4.73626 10.2428 4.41083Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ahtl__expertise .expertise__card-link:hover {
    background-size: 0;
}

.ahtl__expertise .expertise__card-hover .expertise__card-link-wrapper {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

/* Removed old hover link visibility */

.ahtl__expertise .expertise__card-link:hover {
    text-decoration: none;
}

.ahtl__expertise .slider-controls {
    margin-top: 24px;
}

@media only screen and (max-width: 991px) {
    .ahtl__expertise {
        padding: 40px 0;
    }

    .ahtl__expertise .expertise__tab-mobile-selected {
        cursor: pointer;
        margin: 0 auto;
        padding: 10px 16px;
        background: #FFFFFF;
        border: 1.5px solid #F1F2F3;
        border-radius: 8px;
        font-weight: 600;
        font-size: 16px;
        line-height: 140%;
        color: #000000;
        display: flex;
        align-items: center;
        height: 61px;
        position: relative;
    }

    .ahtl__expertise .expertise__tab-mobile-selected svg {
        position: absolute;
        bottom: 18.5px;
        right: 16px;
        pointer-events: none;
        transition: transform 0.3s ease;
    }

    .ahtl__expertise .expertise__tabs {
        position: relative;
        max-width: 353px;
        width: 100%;
        margin: 0 auto;
        border: 0;
        margin-bottom: 16px;
    }

    .ahtl__expertise .expertise__tab-list {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
        background: #FFFFFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        z-index: 10;
        flex-direction: column;
        padding: 10px 16px;
        border: 1.5px solid #F1F2F3;
    }

    .ahtl__expertise .expertise__tabs.is-open .expertise__tab-list {
        display: flex;
        width: 100%;
    }

    .ahtl__expertise .expertise__tab-item {
        border-bottom: none;
        text-align: left;
        padding: 10px 0;
        margin-bottom: 0;
        flex: none;
        width: 100%;
        background: transparent;
        color: #000;
    }

    .ahtl__expertise .expertise__tab-item--active {
        color: #286CFF;
    }

    .ahtl__expertise .expertise__tabs.is-open .expertise__tab-mobile-selected svg {
        transform: rotate(180deg);
    }

    .ahtl__expertise .expertise__subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .ahtl__expertise .expertise__title {
        font-size: 24px;
    }
}

@media only screen and (max-width: 767.98px) {
    .ahtl__expertise .expertise__tabs {
        width: 100%;
    }


}

@media only screen and (max-width: 375.98px) {
    .ahtl__expertise .expertise__card {
        flex-basis: calc(100% - 20px) !important;
    }
}