

.timeline-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
}
.timeline-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.281); /* 半透明黑色遮罩 */
    z-index: 1;
    border-radius: 50%;
}
.timeline-content{
  position: relative; 
  z-index: 2;
  color: #fff;
  font-size: 1.5vmax;
  word-break: break-word;
  white-space: normal;
  padding: 0 0.5em;
  text-shadow:  0 0 5px #000,
                0 0 10px #000,
                0 0 20px #000,
                0 0 40px #000,
                0 0 80px #000;
}
.timeline-date{
  z-index: 2;
  position: relative;
  color: #fff;
  font-size: clamp(0.7em, 1vw, 1em);
  font-size: 1.5vmax;
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow:  0 0 5px #000,
                0 0 10px #000,
                0 0 20px #000,
                0 0 40px #000,
                0 0 80px #000;
}
.timeline-event {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

  
.marquee-container {
    width: 580px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll-left 48s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(15%); }
    100% { transform: translateX(-100%); }
}

.marquee-content img {
    height: 400px;
    margin-right: 100px;
    vertical-align: middle;
}

/* .marquee-content img:hover {
    transform: scale(1.3); /* 放大 1.3 倍 
} */


  

.timeline-container {
    width: 100%;
    margin: 40px auto;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.timeline-upper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    right: 90px;
}
.timeline-upper .timeline {
    position: relative;
    right: 50px; /* 錯位偏移，與 block 寬度約一半對齊 */
}
.timeline {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
.timeline-middle-line {
    width: 100%;
    height: 4px;
    background: #2196f3;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.timeline-lower {
    width: 100%;
    padding-bottom: 15px;
    position: relative;
    overflow-x: hidden
}
.timeline-lower .timeline {
    position: relative;
    left: 50px; /* 錯位偏移，與 block 寬度約一半對齊 */
}
@media (max-width: 900px) {
    .timeline-lower .timeline {
        left: 45px;
    }
    }
@media (max-width: 700px) {
    .timeline-lower .timeline {
        left: 0;
    }
}
/* Remove the old .timeline::before blue line */
.timeline-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 50vmax;
    box-sizing: border-box;
}

.timeline-lower .timeline-block {
    margin-right: 190px;
}
.timeline-uppper .timeline-block {
    margin-left: 100px;
}
.timeline-event {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px 30px;
    text-align: center;
    z-index: 1;
    margin-bottom: 30px;
    width: 10vmax;
    height: 10vmax;
    transition: box-shadow 0.3s;
    border-radius: 50%;
    font-size: 0.9em;
}
.timeline-event:hover {
    box-shadow: 0 4px 16px rgba(155,2,2,0.7);
}
.timeline-dot {
    width: 1vmax;
    height: 1vmax;
    background: rgba(155,2,2,0.7);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(155,2,2,0.7);
    margin-top: -13px;
    z-index: 2;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.timeline-lower .timeline-dot {
    width: 1vmax;
    height: 1vmax;
    background: rgba(155,2,2,0.7);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(155,2,2,0.7);
    margin-top: 13px;
    margin-bottom: 13px;
    z-index: 2;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.timeline-dot:hover {
    box-shadow: 0 0 0 6px rgba(155,2,2,0.7);
}

/* Inline details panel */
.timeline-details {
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(155,2,2,0.7);
    max-width: 20vmax;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    animation: detailsIn 0.3s;
    min-width: 300px;
}
.timeline-details.active {
    display: block;
}
.timeline-details h2 {
    font-size: 2vmax;
}
.timeline-details p {
font-size:   1.7vmax;
}
.timeline-details img{
    width: 21vmax;
    height: 14vmax;
}
@keyframes detailsIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.timeline-details img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 18px;
}
@media (max-width: 700px) {
    .timeline {
        flex-direction: column;
        min-width: 0;
    }
    .timeline-block {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 40px;
        
    }
    .timeline-event {
        margin-bottom: 0;
        margin-right: 30px;
    }
    .timeline-dot {
        margin-top: 0;
        margin-left: -13px;
    }
    .timeline::before {
        width: 4px;
        height: 100%;
        left: 11px;
        top: 0;
    }
    .timeline-details {
        max-width: 98vw;
        padding: 20px 5vw;
    }
}


.f2.heading--sanSerif {
    font-size: clamp(1em, 2vw, 2em);
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    align-items: center;
    text-align: center;
}


/*Topic 黃色大字*/
.topic {
    margin: 0;
    text-align:center;
    position: relative;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 5vmax;
    color: #FFD700;
    letter-spacing: 20px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.7);
} 



/*每個Section 大小*/

/*section {
  display: grid;
  height:100%;
  width:100%;
  background-color: rgba(7, 85, 116, 0.85);

  margin: 0;
  border: none;
  padding: 0;

}*/

section {
    position: relative;
    background: none;
}


section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-image: url('../images/45anniversary/schoolBG.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    margin: 0;
    border: none;
    padding: 0;
    /* blur */
    background-blend-mode: multiply;
    background-color: rgba(0,0,0,0);  /* Section 背景色 */
    filter: blur(5px) grayscale(70%);
    -webkit-filter: blur(5px) grayscale(70%);
}
section > * {
    position: relative;
    z-index: 1;
}
section#progress::before {

    background-color: rgba(155,2,2,0.7);  /* Section 背景色 */
}
section#registration::before {
    background-color: rgba(255, 217, 0, 0.6);  /* Section 背景色 */
}
section#reward::before {
    background-color: rgba(7,85,116,0.85);  /* Section 背景色 */
}
section#logo::before {
     background-color: rgba(34,139,34,0.85);  /* Section 背景色 */
}




section#reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
section#registration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 1200px;

}
section#progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 1200px;
    min-width: 100%;
}

section#logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;

}
section#renew {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;

}

.logo-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    gap: 40px;
}
.logo-img {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.logo-text .topic {
    font-size: clamp(2em, 5vw, 3em);
    letter-spacing: 10px;
    text-align: left;
}
.logo-text p {
    font-size: clamp(1em, 2vw, 1.5em);
    margin-top: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .logo-flex {
        flex-direction: column;
        gap: 20px;
        max-width: 98vw;
    }
    .logo-img {
        flex: 0 0 100px;
        max-width: 100px;
    }
    .logo-text {
        align-items: center;
        text-align: center;
    }
    .logo-text .topic {
        font-size: clamp(1.2em, 6vw, 2em);
        letter-spacing: 5px;
        text-align: center;
    }
    .logo-text p {
        font-size: clamp(0.9em, 3vw, 1.2em);
        text-align: center;
    }
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 50px;
    margin: 50px 0;
    position: relative;
}

.reward-grid .tl-item {
    aspect-ratio: 16/9;
    height: 100%;
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    transition: transform 0.8s;
    font-size: clamp(0.7em, 1.5vw, 1em);
    position: flex;
    display: flex;
    align-items: center;
    justify-content: center;
  
}
.reward-grid .tl-item:hover {
    position: grid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    z-index: 10;

}


.reward-grid .tl-content {
    position: absolute;
    top: 35%;
    left: 7%;
    transform: translate(50%, 50%);
    z-index: 2;
    text-align: center;
    margin: 0;
    width: 90%;
    opacity: 0;
    font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    font-size: clamp(0.5em, 0.5vw, 1em);
    font-weight: normal;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5), 0 0 8px #04b6fd;
}
.reward-grid .tl-content h1 {
    font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: clamp(1em, 1vw, 1.2em);
}


.reward-grid .tl-year {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;

}
.reward-grid .tl-year p {
    font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: clamp(1em, 1vw, 1.2em);
    line-height: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5), 0 0 8px #000000;

}

body {
    font-family: "Source Sans Pro", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 30px;
    height:100%;
    width:100%;
    padding:0;
    margin: 0;
    line-height: 1.75;
    overflow-x: hidden;
}

.return_index {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    margin-top: 20px;
    cursor: pointer;
}

#index {
    display: flex;
    background-color: #202503;
}
#index:hover .tl-item {
    width: 45%;
}


.tl-item {
    transform: translate3d(0, 0, 0);
    position: relative;
    width: 35%;
    height: 100vh;
    min-height: 600px;
    color: #fff;
    overflow: hidden;
    transition: width 0.5s ease;
  
}
.tl-item:before, .tl-item:after {
    transform: translate3d(0, 0, 0);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.tl-item:after {
    background: rgba(155,2,2,0.7);
    opacity: 1;
    transition: opacity 0.5s ease;
  
}
.tl-item#tag1:after {
    background: rgba(155,2,2,0.6);
    opacity: 1;
    transition: opacity 0.5s ease;
}
.tl-item#tag2:after {
    background: rgba(255, 217, 0, 0.6);
    opacity: 1;
    transition: opacity 0.5s ease;
}
.tl-item#tag3:after {
    background: rgba(7,85,116,0.7);
    opacity: 1;
    transition: opacity 0.5s ease;
}
.tl-item#tag4:after {
    background: rgba(34,139,34,0.6);
    opacity: 1;
    transition: opacity 0.5s ease;
}

/*black filter*/
.tl-item:before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 95%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(50%);
    transition: opacity 0.5s ease, transform 0.5s ease;
  
}

.tl-item:hover {
    width: 50% !important;
}
.tl-item:hover:after {
    opacity: 0;
}

.tl-item:hover:before {
    opacity: 1;
    transform: translate3d(0, 0, 0) translateY(0);
    transition: opacity 1s ease, transform 1s ease 0.25s;
}
.tl-item:hover .tl-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.75s ease 0.5s; 
}
.tl-item:hover .tl-bg {
    filter: grayscale(0);
}
.tl-content {
    transform: translate3d(0, 0, 0) translateY(25px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 1.618em;
    top: 55%;
    opacity: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5), 0 0 8px #04b6fd;
}
.tl-content h1 {
    font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    text-transform: capitalize;
    color: #ffffff;
    font-size: 1.44rem;
    font-weight: normal;

}

.tl-year {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5), 0 0 8px #9b0202;
}
.tl-year p {
    font-family: "Pathway Gothic One", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: clamp(2rem);
    line-height: 0;
}

.tl-bg {
    transform: translate3d(0, 0, 0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    transition: filter 0.5s ease;
    filter: grayscale(50%);
}
/* Logo */
#fixed-logo {
    position: fixed;
    top: 0px;
    left: 10px;
    width: 80px;
    height: auto;
    z-index: 9999;
}


#fixed-logo:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#fixed-logo-right {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: auto;
    z-index: 20;
}
#fixed-logo-right:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
#fixed-title {
    position: fixed;
    top: 10px;
    left: 100px;
    font-size: 25px;
    color: #ffffff;
    z-index: 9999;
        text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.7);
}

#fixed-title:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
#fixed-45 {
    position: fixed;
    top: 50px;
    left: 100px;
    font-size: 25px;
    color: #ffffff;
    z-index: 9999;
        text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 20px rgba(255, 0, 0, 0.7);
}
#fixed-45:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/*Table 低*/
.table-container {
    overflow-x: auto ;
    background: rgba(155,2,2,0.7);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 0 auto;
}

table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    min-width: 600px;
}

th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: rgba(155,2,2,0.7);
    cursor: pointer;
    transition: background-color 0.5s ease;
}

th:hover {
    background-color: #e0e0e0;
}

th.active {
    background-color: #2196f3;
    color: white;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #ffffff;
}

tr:hover {
    background-color: rgba(155,2,2,0.7);
    transition: background-color 0.5s ease;
}
tr#logo-table:hover {
    background-color: rgba(34,139,34,0.15); /* Green hover */
}

.sort-icon {
    margin-left: 8px;
    font-size: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    th, td {
        padding: 10px;
        font-size: 14px;
    }
}

button {
    width: 9em;
    height: 3em;
    border-radius: 30em;
    font-size: 15px;
    font-family: inherit;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 6px 6px 12px #c5c5c5,
                -6px -6px 12px #ffffff;
}
/* 校友報名表格按鈕 */
button::before {
 content: '';
    width: 0;
    height: 3em;
    border-radius: 30em;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #FFD700 0%, #FFFACD 100%); 
    transition: .5s ease;
    display: block;
    z-index: -1;
}

button#book-prev::before {
    background-image: linear-gradient(to left, rgba(7,85,116,1) 0%, rgba(7,85,116,0.85) 100%); 
}
button#book-next::before {
    background-image: linear-gradient(to right, rgba(7,85,116,0.85), rgba(7,85,116,1) 100%); 
}

button:hover::before {
    width: 9em;
}