/* Homepage — Browse by Field (compact SEO carousel) */

.home-field-carousel {
    margin: 0 0 2rem;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #2a9d8f;
    background: linear-gradient(180deg, #edf8f5 0%, #fff 3rem);
    box-shadow: 0 4px 24px rgba(38, 70, 83, 0.06);
    box-sizing: border-box;
}

.home-field-carousel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-field-carousel__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a9d8f;
}

.home-field-carousel__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    line-height: 1.25;
    color: #264653;
}

.home-field-carousel__lead {
    margin: 0;
    max-width: 40rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #4b5563;
}

.home-field-carousel__all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #b7dfd8;
    background: #fff;
    color: #1d6f63;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-field-carousel__all:hover {
    background: #e6f5f1;
    border-color: #2a9d8f;
    color: #155e54;
    text-decoration: none;
}

.home-field-carousel__all-icon {
    line-height: 1;
}

.home-field-carousel__shell {
    position: relative;
}

.home-field-carousel__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-field-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.home-field-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-field-carousel__item {
    flex: 0 0 168px;
    width: 168px;
}

.home-field-carousel__tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    height: 132px;
    padding: 0.85rem 0.8rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #264653;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(38, 70, 83, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-field-carousel__tile:hover,
.home-field-carousel__tile:focus-visible {
    transform: translateY(-2px);
    border-color: #2a9d8f;
    box-shadow: 0 6px 18px rgba(42, 157, 143, 0.14);
    text-decoration: none;
    color: #264653;
}

.home-field-carousel__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.home-field-carousel__label {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: #264653;
}

.home-field-carousel__meta {
    margin-top: auto;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #6b7280;
}

.home-field-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #264653;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(38, 70, 83, 0.12);
}

.home-field-carousel__nav--prev {
    left: -0.35rem;
}

.home-field-carousel__nav--next {
    right: -0.35rem;
}

.home-field-carousel__nav:hover:not(:disabled):not(.is-hidden) {
    border-color: #2a9d8f;
    color: #1d6f63;
}

.home-field-carousel__nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .home-field-carousel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-field-carousel__all {
        align-self: flex-start;
    }

    .home-field-carousel__nav {
        display: none;
    }

    .home-field-carousel__item {
        flex-basis: 152px;
        width: 152px;
    }

    .home-field-carousel__tile {
        height: 128px;
    }
}

@media (max-width: 480px) {
    .home-field-carousel__item {
        flex-basis: 140px;
        width: 140px;
    }

    .home-field-carousel__tile {
        height: 124px;
        padding: 0.75rem 0.7rem 0.65rem;
    }
}
