/* GLOBAL STYLES */


/* WRAPPER */
.classes-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

/* TITLE */
.title {
    text-align: center;
    margin-bottom: 35px;
    color: white;
}

.title span {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    margin-top: 6px;
    font-size: 15px;
    opacity: 0.7;
}

/* GRID STYLE */
.year-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* YEAR CARDS (NEW DESIGN) */
.year-card {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(255, 0, 0, 0.25);
    padding: 25px 15px;
    border-radius: 18px;
    text-decoration: none;
    color: white;
    text-align: center;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
    transition: 0.35s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Floating animation */
.year-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.55);
    border-color: rgba(255, 0, 0, 0.7);
}

/* Shine animation on hover */
.year-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -120%;
    width: 250%;
    height: 250%;
    background: rgba(255,255,255,0.12);
    transform: rotate(25deg);
    transition: 0.6s;
}

.year-card:hover::after {
    top: -10%;
    left: -10%;
}

/* YEAR STYLES */
.year-number {
    font-size: 42px;
    font-weight: 800;
    color: #ff3333;
}

.year-label {
    margin-top: 5px;
    font-size: 15px;
    opacity: 0.8;
}

/* MOBILE */
@media(max-width: 600px) {
    .year-number { font-size: 32px; }
}

.alumni-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.alumni-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alumni-card h3 {
    margin: 5px 0;
    font-size: 18px;
}

.alumni-card p {
    margin: 3px 0;
    color: #444;
    font-size: 14px;
}


.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 6px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    padding: 6px 12px;
    border: 1px solid #ccc;
    color: black;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: #eee;
}

.pagination .active .page-link {
    background: #b30000;
    color: white;
    border-color: #b30000;
}

.pagination .disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}