﻿/* ==========================================================================
   Spotlight Carousel (clean full CSS)
   - Centered header + top padding
   - Slider track (smooth transform)
   - Card border + shadow like mockup
   - Corner accents as thin "L" strokes (NOT triangles)
   ========================================================================== */

/* Section wrapper (make sure your cshtml uses <section class="spotlight-section">) */
.spotlight-section {
    background: #f8f9fa;
    padding: 70px 0; /* top/bottom spacing like mockup */
}

/* Header */
.spotlight-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

    .spotlight-header h2 {
        /*font-size: 2.5rem;
        color: #1e3a5f;
         font-weight: 700;*/
       margin: 0 0 8px 0;
    }

.spotlight-subtitle {
    margin: 0;
    /*font-size: 1.2rem;*/
    color: #333;
    font-weight: 400;
}

/* Carousel layout */
.spotlight-carousel {
    position: relative;
    max-width: 1200px;  /*1050px;*/ /* closer to mockup card width */
    margin: 0 auto 18px;
    padding: 0 20px; /* prevents arrow clipping on small screens */
}

/* Viewport for slides; height animates to prevent "jumping" */
.carousel-container {
    overflow: hidden;
    border-radius: 10px;
    transition: height 350ms ease;
}

/* Track that slides left/right */
.carousel-track {
    display: flex;
    will-change: transform;
    transition: transform 450ms ease;
    transform: translate3d(0, 0, 0);
}

/* Each slide fills the viewport width */
.spotlight-card {
    flex: 0 0 100%;
    min-width: 100%;
    display: block; /* IMPORTANT: do not use display:none */
}

/* Card styling */
.card-inner {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e7e7e7; /* subtle border like mockup */
    box-shadow: inset 0 0 17px rgba(0,0,0,0.12);
    /*0 → no horizontal offset
    10px → downward vertical offset
    30px → blur*/
    padding: 42px 60px 35px;
    position: relative;
    overflow: hidden; /* IMPORTANT: keeps corner accents inside */
}

/* Corner accents (thin "L" strokes) */
.corner-accent {
    position: absolute;
    width: 65px;
    height: 65px;
    pointer-events: none;
    z-index: 2;
    /* Kill any old triangle behavior */
    border: none !important;
    background: transparent !important;
}

    .corner-accent.top-right {
        top: 0;
        right: 0;
        border-top: 3px solid #F4C542!important;
        border-right: 3px solid #F4C542!important;
        border-top-right-radius: 3px;
    }

    .corner-accent.bottom-left {
        bottom: 3px;
        left: 0;
        border-bottom: 3px solid #F4C542!important;
        border-left: 3px solid #F4C542!important;
        border-bottom-left-radius: 3px;
    }

/* Keep content above accents */
.fellow-image,
.fellow-content {
    position: relative;
    z-index: 3;
}

/* Fellow image */
.fellow-image {
    display: flex;
    justify-content: center;
    margin: 0 0 18px 0;
}

    .fellow-image img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid #F4C542;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }

/* Copy text centered like mockup */
.fellow-content p {
    /*font-size: 0.95rem;
    line-height: 1.65;
    color: #333;*/
    margin: 0 0 14px 0;
    text-align: center;
}

/* Fellow info */
.fellow-info {
    text-align: center;
    margin-top: 18px;
}

.fellow-name {
    font-size: 1.55rem;
    color: #1e3a5f;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.fellow-title,
.fellow-institution {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

/* Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1e3a5f;
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .carousel-nav:hover {
        background: #2d5278;
        transform: translateY(-50%) scale(1.06);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.96);
    }

    .carousel-nav.prev {
        left: -4px;
    }

    .carousel-nav.next {
        right: -4px;
    }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 22px;
}

    .carousel-dots .dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #cfcfcf;
        border: none;
        cursor: pointer;
        padding: 0;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

        .carousel-dots .dot.active {
            background: #1e3a5f;
            transform: scale(1.25);
        }

/* CTA Button (kept from your earlier styling intent) */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.view-more-btn {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .view-more-btn:hover {
        background: #2d5278;
        transform: translateY(-1px);
    }

    .view-more-btn:active {
        transform: translateY(0);
    }

/* View More Button */
.spotlight-footer {
    text-align: center;
}

.btn-view-fellows {
    display: inline-block;
    background: #2d5278;
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-view-fellows:hover {
        background: #1e3a5f;
        transform: translateY(-2px);
        text-decoration: none;
        color: white;
    }

/* Responsive */
@media (max-width: 768px) {
    .spotlight-header h2 {
        font-size: 2rem;
    }

    .spotlight-subtitle {
        font-size: 1.05rem;
    }

    .card-inner {
        padding: 30px 22px;
    }

    .corner-accent {
        width: 38px;
        height: 38px;
    }

    .fellow-image img {
        width: 105px;
        height: 105px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

        .carousel-nav.prev {
            left: -2px;
        }

        .carousel-nav.next {
            right: -2px;
        }
}
