/* ── Specialties Carousel — premium homepage section ── */

.specialties-carousel {
    --sc-navy:    #1E2D4F;
    --sc-magenta: #F03167;
    --sc-gold:    #BF9855;
    --sc-blush:   #E8B7C4;
    --sc-ivory:   #F7F5F2;
    --sc-border:  rgba(30, 45, 79, 0.1);
    position: relative;
    padding: 48px 0 56px;
}

.specialties-carousel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.specialties-carousel__heading-wrap {
    flex: 1;
    min-width: 0;
}

.specialties-carousel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sc-gold);
    margin-bottom: 10px;
    padding-bottom: 10px;
    position: relative;
}

.specialties-carousel__label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: currentColor;
    opacity: 0.6;
}

.specialties-carousel__title {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--sc-navy);
}

.specialties-carousel__subtitle {
    margin-top: 8px;
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.5;
    color: rgba(43, 49, 59, 0.72);
    max-width: 540px;
}

.specialties-carousel__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.specialties-carousel__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--sc-border);
    background: #fff;
    color: var(--sc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.2s ease, color 0.22s ease;
}

.specialties-carousel__nav-btn:hover {
    background: var(--sc-navy);
    border-color: var(--sc-navy);
    color: #fff;
    transform: scale(1.04);
}

.specialties-carousel__nav-btn:active {
    transform: scale(0.98);
}

.specialties-carousel__swiper {
    overflow: hidden;
    border-radius: 14px;
}

.specialties-carousel__swiper .swiper-slide {
    height: auto;
}

.specialty-card {
    display: block;
    position: relative;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--sc-border);
    box-shadow: 0 10px 28px -14px rgba(30, 45, 79, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

@media (min-width: 768px) {
    .specialty-card {
        height: 380px;
    }
}

@media (min-width: 1280px) {
    .specialty-card {
        height: 420px;
    }
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-top: 1px solid rgba(191, 152, 85, 0.5);
    border-right: 1px solid rgba(191, 152, 85, 0.5);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--sc-gold);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 4;
    transition: transform 0.32s ease;
}

.specialty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 45, 79, 0.18);
    box-shadow: 0 20px 40px -16px rgba(30, 45, 79, 0.22);
}

.specialty-card:hover::after {
    transform: scaleX(1);
}

.specialty-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.specialty-card:hover .specialty-card__image {
    transform: scale(1.05);
}

.specialty-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(30, 45, 79, 0.08) 0%, rgba(30, 45, 79, 0.28) 48%, rgba(30, 45, 79, 0.94) 100%),
        radial-gradient(circle at 88% 8%, rgba(240, 49, 103, 0.16), transparent 42%);
    z-index: 1;
}

.specialty-card:hover .specialty-card__overlay {
    background:
        linear-gradient(180deg, rgba(30, 45, 79, 0.1) 0%, rgba(30, 45, 79, 0.34) 45%, rgba(30, 45, 79, 0.96) 100%),
        radial-gradient(circle at 88% 8%, rgba(240, 49, 103, 0.22), transparent 42%);
}

.specialty-card__icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 183, 196, 0.5);
    color: var(--sc-magenta);
    font-size: 16px;
    box-shadow: 0 6px 16px -10px rgba(30, 45, 79, 0.35);
}

.specialty-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.specialty-card__name {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.specialty-card__meta {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.specialty-card:hover .specialty-card__meta {
    color: var(--sc-blush);
    gap: 10px;
}

@media (max-width: 640px) {
    .specialties-carousel {
        padding: 28px 0 36px;
    }

    .specialties-carousel__header {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .specialties-carousel__nav-btn {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .specialty-card {
        height: 280px;
    }

    .specialty-card__content {
        padding: 18px 16px 16px;
    }
}
