:root {
    --eruditus-color-primary: #ef4444;
    --eruditus-color-primary-hover: #dc2626; /* red-600 */
}

/* Container */
.eruditus-slider-container {
    width: 100%;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.eruditus-swiper {
    padding-bottom: 40px !important; /* Space for pagination */
}

.eruditus-swiper .swiper-slide {
    height: auto;
}

/* Card Wrapper */
.eruditus-card {
    background-color: #fff;
    border-radius: 0.5rem; /* rounded-lg */
    border: 2px solid var(--eruditus-color-primary); /* border-2 border-[#1A2E4F] */
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    color: #1f2937; /* text-card-foreground */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.eruditus-card:hover {
    border-color: var(--eruditus-color-primary-hover); /* hover:border-[#2A3E5F] */
}

/* Image Section */
.eruditus-card-image-wrapper {
    position: relative;
}

.aspect-square {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background-color: rgba(243, 244, 246, 0.3); /* bg-muted/30 */
}

.aspect-video {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background-color: rgba(243, 244, 246, 0.3); /* bg-muted/30 */
}

/* Metallic Reflection Effect */
.aspect-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    z-index: 10;
    pointer-events: none;
}

.eruditus-card:hover .aspect-video::after {
    left: 200%;
}

.eruditus-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eruditus-card:hover .eruditus-card-img {
    transform: scale(1.05); /* group-hover:scale-105 */
}


/* Badge Icon Top Right */
.absolute { position: absolute; }
.top-3 { top: 0.75rem; }
.right-3 { right: 0.75rem; }
.bottom-3 { bottom: 0.75rem; }
.left-3 { left: 0.75rem; }

.eruditus-badge-icon {
    background-color: rgba(26, 46, 79, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.25rem;
    border: 1px solid rgba(26, 46, 79, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass Card Bottom */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.font-medium { font-weight: 500; }
.text-muted-foreground { color: #6b7280; }

/* Content Section */
.eruditus-card-content {
    padding: 1rem; /* p-4 */
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    flex-grow: 1;
}

.eruditus-card-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    transition: color 0.3s;
}

.eruditus-card:hover .eruditus-card-name {
    color: #FB5F34;
}

.eruditus-card-role {
    margin: 0;
    color: #a80505;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}

.eruditus-card-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem; /* text-xs */
}

.eruditus-card-bio {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem; /* text-xs */
    line-height: 1.625; /* leading-relaxed */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.eruditus-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto; /* Push to bottom if flex column */
}

.eruditus-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--eruditus-color-primary), transparent 70%);
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    color: var(--eruditus-color-primary);
    background-color: color-mix(in srgb, var(--eruditus-color-primary), transparent 95%);
    border-radius: 0.375rem; /* rounded-md */
}

/* Swiper Wrapper Transition */
.swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet-active {
    background-color: #1A2E4F !important;
}
