:root {
    --text-main: #1a237e;
    --accent: #3949ab;
}

body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc;
    color: #4b5563;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
}

p, a, span, div {
    font-family: inherit;
}

.floating-header {
    position: fixed;
    top: -150px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-header.header-scrolled {
    top: 0; 
}

#main-nav .g1 h1, #main-nav .g1 .nav-title { 
    color: var(--text-main) !important; 
}
#main-nav .g1 h2, #main-nav .g1 .nav-subtitle { 
    color: #64748b !important; 
}

main {
    padding-top: 0;
}

.alumni-hero {
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-content-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    will-change: transform, opacity;
}

.hero-content-main h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 9em;
}

.hero-content-main p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.year-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1rem 2rem;
    position: relative;
    z-index: 20;
    flex-wrap: wrap;
    background-color: #f8fafc;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
}

.batch-section { 
    display: none; 
    animation: fadeInTab 0.5s ease forwards;
    position: relative;
    z-index: 10;
    background-color: #f8fafc;
    padding-bottom: 4rem;
}

.batch-section.active { 
    display: block;
}


.alumni-grid {
    display: flex;
    flex-wrap: wrap;    
    justify-content: center;
    gap: 2rem;
    max-width: 85rem;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.alumni-card {

    width: calc(33.333% - 1.34rem); 
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alumni-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
    border-color: rgba(26, 35, 126, 0.2);
}

.alumni-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.alumni-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.alumni-card:hover .alumni-img img {
    transform: scale(1.05);
}

.alumni-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.alumni-header {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.8rem;
}

.alumni-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 800;
}

.alumni-header .degree {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.alumni-quote {
    font-size: 1.2 rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
    letter-spacing: 0.02em;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    margin-top: 1.5rem;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    background-color: #1e1e1e !important;
    border-top: 1px solid #333333 !important;
    padding: 2rem;
    text-align: center;
}

footer p {
    color: #cbd5e1 !important;
    margin: 0.5rem 0;
}

footer a {
    color: #cbd5e1 !important;
    text-decoration: underline;
}

@media (max-width: 64rem) {
    .timeline-wrapper {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .alumni-grid { 
        gap: 2.5rem; 
        padding: 0 1.5rem;
    }
    
    .alumni-card {
        width: calc(50% - 1.25rem); 
    }

    .alumni-img {
        padding-top: 100%; 
    }

    .alumni-info {
        padding: 1.5rem;
    }

    .alumni-header h3 {
        font-size: 1.6rem; 
    }

    .alumni-header .degree {
        font-size: 1.1rem;
    }

    .alumni-quote {
        font-size: 1.2 rem;
        font-family: 'Georgia', serif;
        font-style: italic;
        color: #4b5563;
        line-height: 1.6;
        letter-spacing: 0.02em;
        padding-left: 1rem;
        border-left: 2px solid var(--accent);
        margin-top: auto;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 48rem) {
    .timeline-wrapper {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .alumni-grid { 
        padding: 0 1rem;
        gap: 2.5rem;
    }

    .alumni-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .alumni-img {
        padding-top: 100%; 
    }

    .alumni-info {
        padding: 1.5rem;
    }

    .alumni-header h3 {
        font-size: 1.7rem; 
    }

    .alumni-header .degree {
        font-size: 1.15rem;
    }

    .alumni-quote {
        font-size: 1.2rem;
        line-height: 1.7;
        margin-top: 1.5rem;
    }
}

.timeline-wrapper {
    position: relative;
    max-width: 600px;
    margin: 4rem auto 2rem;
    overflow: hidden;
    z-index: 20;
}

.timeline-track {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    padding: 0.5rem 2rem;
    align-items: center;
    justify-content: flex-start;
}

.timeline-track::-webkit-scrollbar {
    display: none; 
}

.timeline-year {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #94a3b8; 
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.timeline-year:hover {
    color: var(--accent);
}

.timeline-year.active {
    font-size: 1.8rem;
    color: var(--text-main);
    border-bottom: 3px solid var(--accent);
}

.timeline-fade-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(248, 250, 252, 0), rgba(248, 250, 252, 1));
    pointer-events: none;
}

.archive-notice {
    grid-column: 1 / -1;
    min-height: 40vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff; 
    border: 1px solid rgba(26, 35, 126, 0.05); 
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.04);
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.archive-notice:hover {
    transform: translateY(-5px);
}

.archive-notice h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.archive-notice p {
    color: #64748b;
    font-size: 1.2rem;
    max-width: 400px;
}

.alumni-quote {
    transition: max-height 0.3s ease;
}

.alumni-quote.expanded {
    display: block !important; 
}

/* button styling */
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding: 0;
    text-transform: uppercase;
}