/* Testimonials spotlight block */
.employee-portal-testimonials {
    position: relative;
    max-width: 1704px;
    width: calc(100% - 2rem);
    margin: clamp(3rem, 6vw, 5rem) auto;
    color: #ffffff;
    overflow: hidden;
    border-radius: 30px;
}

.employee-portal-testimonials__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 60.9375rem;
    overflow: visible;
    border-radius: inherit;
    z-index: 2;
}

.employee-portal-testimonials__hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-portal-testimonials__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 11, 21, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 80%,
        rgba(0, 0, 0, 1) 100%
    );
}

.employee-portal-testimonials__hero-inner {
    position: relative;
    width: 100%;
    padding: clamp(2.5rem, 5vw, 3.75rem);
    display: grid;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    max-width: min(820px, 82vw);
    left: 50%;
    transform: translate(-50%, 10%) !important;
    text-align: center;
}

.employee-portal-testimonials__heading {
    margin: 0;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    font-weight: 700;
    font-style: normal;
    font-size: 3.5rem; /* 56px */
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
}

.employee-portal-testimonials__description {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    font-size: 1.25rem; /* 20px */
    line-height: 2.125rem; /* 34px */
    letter-spacing: 0em;
    text-align: center;
    vertical-align: bottom;
    max-width: 621px;
    margin-bottom: 2rem;
}

.employee-portal-testimonials__cards {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 3.125rem;
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 2rem);
}

.employee-portal-testimonials__card {
    position: relative;
    border-radius: 1.875rem;
    padding: 3.125rem;
    box-shadow: 0 24px 48px rgba(3, 10, 22, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.85rem, 2.1vw, 1.4rem);
    width: 100%;
    min-height: 520px;
    overflow: hidden;
	transition: all 0.3s ease;
}
.employee-portal-testimonials__card[hidden],
.employee-portal-testimonials__card.is-hidden {
    display: none !important;
}
.employee-portal-testimonials__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* filter: blur(18px); */
    z-index: -1;
    background: #181818;
}

.employee-portal-testimonials__card blockquote {
    margin: 0;
}

.employee-portal-testimonials__quote {
    margin: 0;
    font-size: 1.125rem; /* 18px */
    line-height: 1.875rem; /* 30px */
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-style: normal;
}

.employee-portal-testimonials__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-top: auto; /* ensure it stays at bottom if quote shorter */
}

.employee-portal-testimonials__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.employee-portal-testimonials__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	object-position: top;
}

.employee-portal-testimonials__identity {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.employee-portal-testimonials__name {
    margin: 0;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem; /* 20px */
    line-height: 1.875rem; /* 30px */
    letter-spacing: 0;
}

.employee-portal-testimonials__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    font-size: 1.125rem; /* 18px */
    line-height: 1.25; /* 100% */
    letter-spacing: 0;
}

.employee-portal-testimonials__actions {
	margin-top: 0;
	text-align: center;
}
.employee-portal-testimonials__actions[hidden] {
	display: none !important;
}
.employee-portal-testimonials__more {
	border: 1px solid #ffffff;
	background: transparent;
	color: #ffffff;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	border-radius: 9999px;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}


@media (max-width: 980px) {
    .employee-portal-testimonials__cards {
        grid-template-columns: minmax(0, 1fr);
        padding: 3.125rem;
    }
}

@media (max-width: 768px) {
    .employee-portal-testimonials {
        border-radius: clamp(20px, 8vw, 28px);
        margin: 0 0 3rem;
        width: 100%;
    ;
        /* overflow: visible; */
    }

    .employee-portal-testimonials__hero-inner {
        padding: 0;
        padding-bottom: 2rem;
    }

    .employee-portal-testimonials__cards {
        display: flex;
        gap: 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1.5rem;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%) !important;
        padding: 0 1rem;
        margin: 3rem 0;
    }

    .employee-portal-testimonials__cards::-webkit-scrollbar {
        height: 6px;
    }

    .employee-portal-testimonials__cards::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.18);
        border-radius: 999px;
    }

    .employee-portal-testimonials__card {
        flex: 0 0 80vw;
        max-width: 80vw;
        scroll-snap-align: start;
        padding: 24px;
    }
    .employee-portal-testimonials__avatar{
        width: 76px;
        height: 76px;
        flex-shrink: 0;
    }
    .employee-portal-testimonials__meta {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .employee-portal-testimonials__quote {
        font-size: 1rem;
        line-height: 1.625rem;
        letter-spacing: 0;
    }
    .employee-portal-testimonials__name {
        font-size: 1rem;
        line-height: 1.625rem;
        letter-spacing: 0;
    }
    .employee-portal-testimonials__title {
        font-size: 1rem;
        letter-spacing: 0;
    }
}
