﻿
/* Image Swiper */
.swiper-container {
    width: 800px;
    max-width: 600px;
    padding: 60px 0;
    margin: auto;
    overflow: visible;
}

.swiper-wrapper {
    padding: 0 20px;
}

.swiper-slide {
    width: 450px;
    height: 250px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.swiper-slide-active {
    transform: scale(1.05);
    z-index: 2;
}

/* Pagination(dots under slider) */
.swiper-pagination {
    text-align: center;
    bottom: 10px !important;
    color: #760e26 !important;
}

.hamburger {
    display: none !important;
    visibility: hidden;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}


.swiper-pagination {
    display: none !important;
}

.alumni-text-container {
    max-width: 700px;
    margin: 40px auto 60px;
    padding: 20px 30px;
    border: 3px solid #760e26;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
    animation: borderFadeIn 1.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.alumni-text {
    font-size: 22px;
    font-weight: 600;
    color: #760e26;
    text-align: center;
    opacity: 0;
    animation: textFadeIn 2s ease 0.6s forwards;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

/* Border animation*/
@keyframes borderFadeIn {
    0% {
        border-color: transparent;
        box-shadow: none;
    }

    100% {
        border-color: #760e26;
        box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
    }
}

/* Slow text animation */
@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

.alumni-section {
    max-width: 900px;
    margin: 60px auto 80px;
    padding: 0 20px;
    text-align: center;
    color: #760e26;
}

.alumni-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Abel', sans-serif;
    text-shadow: 1px 1px 2px rgba(128, 0, 0, 0.4); /* a litlle bit subtle effect */
}

.alumni-description {
    font-size: 20px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    font-style: italic;
    color: #990000cc;
    letter-spacing: 0.03em;
}

#alumni-timeline-horizontal {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 60px 20px 80px 20px;
    user-select: none;
    font-family: Arial, sans-serif;
}

.timeline-line {
    position: relative;
    height: 4px;
    background-color: #760e26;
    margin: 40px 0 20px 0;
    border-radius: 2px;
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: -12px;
}

.timeline-point {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #b05050;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px #b05050aa;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .timeline-point.active {
        background-color: #760e26;
        box-shadow: 0 0 12px #760e26;
        transform: scale(1.5) translateY(-10px);
        z-index: 10;
        animation: shake 0.5s ease;
    }

@keyframes shake {
    0%, 100% {
        transform: scale(1.5) translateY(-10px) rotate(0deg);
    }

    25% {
        transform: scale(1.5) translateY(-10px) rotate(5deg);
    }

    50% {
        transform: scale(1.5) translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: scale(1.5) translateY(-10px) rotate(5deg);
    }
}

.timeline-info-card {
    position: absolute;
    top: -80px;
    left: 0;
    background: #760e26;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    pointer-events: none;
    user-select: none;
    transform: translateX(0);
    transition: left 0.3s ease;
}

    .timeline-info-card h3 {
        margin: 0 0 6px 0;
        font-size: 18px;
        font-weight: 700;
    }

    .timeline-info-card p {
        margin: 0;
        font-size: 14px;
        line-height: 1.3;
    }

@media (max-width: 1080px) {
html {
    width:100%;
    height:100%;
    overflow-x:hidden;
}
    
    .navbar-nav {
        margin-right:10px;
    }

    .timeline-info-card {
        left: 50% !important;
        transform: translateX(-50%);
        max-width: calc(100% - 16px);
    }
}

.plain-text-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

    .plain-text-section p {
        color: #760e26;
        font-size: 20px;
        line-height: 1.8;
    }

.edit-create-btn {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    background-color: #760e26;
    color: white;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
}

    .btn-primary:hover {
        background-color: white;
        color: #760e26;
        border: 2px solid #760e26;
        box-shadow: 0 0 10px #760e26;
        transform: scale(1.05);
    }

h2 {
    padding-top: 30px;
    text-align: center;
    color: #760e26;
    margin-bottom: 40px;
}

table {
    border-bottom: none;
}

th {
    color: #760e26;
    text-align: center;
}

.form-control, select {
    border: 2px solid #760e26;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
    padding: 10px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    color: #760e26;
}

    .form-control:focus,
    select:focus {
        outline: none;
        box-shadow: 0 0 8px #760e26;
        border-color: #760e26;
    }

@media (max-width: 768px) {
    .swiper-slide {
        width: 80%;
        height: auto;
    }

    .alumni-section {
        margin: 40px auto;
        padding: 0 10px;
    }

    .alumni-text {
        font-size: 18px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 90%;
    }

    .timeline-info-card {
        top: -70px;
        min-width: 160px;
    }

    .alumni-text {
        font-size: 16px;
    }
}


@media (max-width: 1366px) and (min-width: 1081px) {
    html {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    .timeline-info-card {
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
    }

    .plain-text-section {
        max-width: 1000px;
        margin: 50px auto;
        padding: 0 20px;
    }

        .plain-text-section p {
            font-size: 19px;
            line-height: 1.7;
        }

    .btn-primary {
        font-size: 15px;
        padding: 9px 18px;
    }
}

.timeline-info-card .info-year {
    font-size: 1rem;
    color: white;
    margin: 0;
}

.timeline-info-card a.info-link {
    color: white;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s, text-decoration 0.2s;
}

    .timeline-info-card a.info-link:hover {
        color: #ccc;
        text-decoration: none;
    }

    .timeline-info-card a.info-link sup {
        font-size: 0.6em;
        margin-left: 0.2em;
        vertical-align: super;
    }

@media (max-width: 992px) {
    .typing-text {
        font-size: 20px;
        animation-duration: 3.0s; 
        max-width: 640px;
    }

    #intro-message.intro {
        padding: 40px 20px;
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    #intro-message.intro {
        padding: 28px 12px;
        min-height: 110px;
    }

    .typing-text {
        font-size: 16px; 
        line-height: 1.1;
        border-right: .12em solid rgba(0,0,0,0.7);
        animation-duration: 2.6s; 
        max-width: calc(100% - 12px); 
    }

    #intro-message .typing-text.wrap-on-mobile {
        white-space: normal;
        overflow: visible;
        border-right: none; 
        animation: none; 
    }
}


@media (max-width: 420px) {
    .typing-text {
        border-right: none;
    }
}