/* ================================================================
   alumni.css  —  Alumni photo-card slider (3 visible at a time)
   ================================================================ */

.alumni-section {
    padding: 80px 0 70px;
    background: #f4f6fb;
    overflow: hidden;
}

/* ── Slider wrapper: positions arrows outside the viewport ───── */
.alumni-slider-wrapper {
    position: relative;
    padding: 0 56px;
}

/* ── Viewport clips overflow ─────────────────────────────────── */
.alumni-slider-viewport {
    overflow: hidden;
    border-radius: 4px;
}

/* ── Track slides horizontally ───────────────────────────────── */
.alumni-slider-track {
    display: flex;
    gap: 24px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Each slide takes exactly 1/3 of viewport minus gaps ─────── */
.alumni-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

/* ── Card ────────────────────────────────────────────────────── */
.alumni-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.alumni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 44px rgba(0,0,0,0.13);
}

/* ── Photo block (square) ────────────────────────────────────── */
.alumni-card-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #0a3d7c 0%, #1a5db0 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.alumni-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .4s ease;
}

.alumni-card:hover .alumni-card-photo {
    transform: scale(1.04);
}

.alumni-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Gradient overlay */
.alumni-card-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,30,60,.55) 0%, transparent 55%);
    pointer-events: none;
}

/* LinkedIn on photo */
.alumni-linkedin {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0077b5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    text-decoration: none;
    transition: transform .2s, background .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.alumni-linkedin:hover {
    background: #005885;
    transform: scale(1.15);
}

/* ── Card body ───────────────────────────────────────────────── */
.alumni-card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.alumni-stars { display: flex; gap: 3px; }
.alumni-stars .fa-star            { color: #e0ae50; font-size: .8rem; }
.alumni-stars .fa-star.star-empty { color: #ddd; }

.alumni-quote {
    font-size: .875rem;
    color: #444;
    line-height: 1.75;
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alumni-quote-icon {
    color: #e0ae50;
    font-size: .9rem;
    margin-right: 5px;
    opacity: .75;
}

.alumni-card-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.alumni-card-footer strong {
    font-size: .95rem;
    font-weight: 700;
    color: #1a2340;
}

.alumni-card-footer > span {
    font-size: .78rem;
    color: #666;
    line-height: 1.4;
}

.alumni-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.alumni-batch {
    display: inline-block;
    background: #eef3ff;
    color: #0a3d7c;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    font-style: normal;
}

.alumni-dept-tag {
    display: inline-block;
    background: #fff7e6;
    color: #b07a00;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    font-style: normal;
    text-transform: uppercase;
}

/* ── Arrows ──────────────────────────────────────────────────── */
.alumni-arrow {
    position: absolute;
    top: calc(50% - 22px);   /* halfway up card area, not including dots */
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #0a3d7c;
    background: #fff;
    color: #0a3d7c;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
    padding: 0;
    line-height: 1;
}

.alumni-arrow:hover {
    background: #0a3d7c;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.alumni-prev { left: 0; }
.alumni-next { right: 0; }

.alumni-arrow:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* ── Dots ────────────────────────────────────────────────────── */
.alumni-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.alumni-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}

.alumni-dot.active {
    background: #0a3d7c;
    transform: scale(1.3);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .alumni-slide { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
    .alumni-slider-wrapper { padding: 0 44px; }
    .alumni-slide          { flex: 0 0 100%; }
    .alumni-slider-track   { gap: 16px; }
}