* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: scroll;
    padding-top: 80px;
    background-color: #6f0000;
    overflow-x: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

main {
    position: relative;
    width: 100%;
    height: 100%;
}

.footer {
    padding: 8px;
    text-align: center;
    margin: auto;
    clear: both;
    font-size: 12px;
    color: white;
}

.section-title {
    font-family: "Nunito", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 2rem 0; /* ✅ Top and bottom margin */
    text-align: center; /* ✅ Center the text horizontally */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #ff2a00;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.alumni-section {
    padding: 2rem;
    text-align: center;
    width: 100vw;
}

.spotlight-card.spacer {
    pointer-events: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem 1rem;
}

.carousel-arrow {
    margin-left: 1rem; /* For left button */
    margin-right: 1rem; /* For right button */
    background-color: #ff2a00;
    color: white;
    font-size: 2rem;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 2;
    cursor: pointer;
    user-select: none; /* Modern browsers */
    -webkit-user-select: none; /* Safari/Chrome */
    -ms-user-select: none; /* IE10+ */
}

.carousel-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-left: 100px; /* 👈 Adds space before the first card */
    padding-right: 100px; /* Optional: adds space after the last card */
    flex-grow: 1;
    scrollbar-width: none; /* Firefox */
}

.spotlight-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    border: 5px solid #000000;
    padding: 1rem;
    text-align: center;
    transform-origin: center center;
    scroll-snap-align: center;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.spotlight-card.active {
    transform: scale(1.1);
    opacity: 1;
}

.spotlight-card img {
    width: 75%;
    height: fit-content;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.spotlight-card h3 {
    font-family: "Georgia", serif;
    margin: 0.5rem 0;
    color: #2c2c2c;
}

.spotlight-card p {
    font-size: 0.9rem;
    color: #555;
    font-family: "Verdana", sans-serif;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

@media (max-width: 1000px) {
    .alumni-section {
        padding: 1rem;
    }

    .carousel-track {
        flex-direction: column;
        align-items: center;
        overflow-x: unset;
        overflow-y: auto;
        padding: 1rem;
        scroll-snap-type: none;
    }

    .spotlight-card {
        flex: none;
        width: 90%; /* Make it fluid in mobile view */
        max-width: 400px;
        opacity: 1;
        transform: none;
        margin-bottom: 2rem;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .spotlight-card.spacer {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
