/**
 * Homepage Featured Expertise List
 * Handles the specific hover states and responsive layout
 * for the ACF relationship expertise shortcode.
 */

.home-expertise-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #e8e8e8;
    font-family: var(--font-heading, serif);
}

.expertise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none !important;
    color: var(--copley-deep-blue, #1a2a3a);
    font-size: 20px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .expertise-item {
        font-size: 22px;
        padding: 20px 24px;
    }
}

/* HOVER STATE: Grey background & slight shift */
.expertise-item:hover {
    background-color: #f5f6f7;
    padding-left: 16px;
    /* Shift left slightly to replace the disappearing chevron */
}

.expertise-item__content {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Left Chevron (Hidden on hover) */
.expertise-item__chevron {
    margin-right: 12px;
    color: var(--copley-deep-blue, #1a2a3a);
    font-weight: 300;
    font-size: 24px;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.2s ease, margin-right 0.2s ease;
}

.expertise-item:hover .expertise-item__chevron {
    opacity: 0;
    margin-right: 0;
    width: 0;
}

.expertise-item__title {
    font-weight: 400;
    line-height: 1.2;
}

/* RIGHT EXPLORE BLOCK: Appears on hover */
.expertise-item__explore {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.expertise-item:hover .expertise-item__explore {
    opacity: 1;
    transform: translateX(0);
}

.expertise-explore__label {
    font-family: var(--font-body, sans-serif);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--copley-deep-blue, #1a2a3a);
    margin-right: 10px;
    font-weight: 500;
}

/* The Dark Blue Box with Arrow */
.expertise-explore__box {
    width: 32px;
    height: 28px;
    background-color: var(--copley-deep-blue, #1a2a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.expertise-explore__box svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}