/* ==========================================================================
   1. 基礎設置
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: "Noto Sans TC", serif;
}

/* 针对 Webkit 浏览器（Chrome、Safari 等）隐藏滚动条 */
body {
    background-color: #596260;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   2. 主要布局
   ========================================================================== */
.fixed-title {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mid-part {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* padding: 20px; */
    box-sizing: border-box;
    flex-grow: 1;
    /* 允許 mid-part 撐開父容器 */
    background-image: url('../img/news-background-img.png');
    /* 設置背景圖片 */
    background-size: cover;
    /* 確保背景圖片覆蓋整個容器 */
    background-repeat: no-repeat;
    /* 防止背景圖片重複 */
    background-position: center;
    /* 背景圖片居中 */


}

.fixed-title {
    position: fixed;
    left: max(60px, 5%);
    padding-left: 137px;
    top: 25px;
    color: #FFF;
    font-size: 52px;
    font-weight: 700;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    height: 136px;
    padding: 32px 60px;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;  
} */

nav {
    background-color: #F8C659;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    width: 100%;
    height: 136px;
    padding: 32px 60px;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    z-index: 999;
    margin: auto;
}


.logo {
    position: fixed;
    left: max(60px, 5%);
    top: 0;
    width: 117px;
    height: 136px;
    aspect-ratio: 117/144;
    z-index: 1000;
}

.logo img {
    width: 117px;
    height: 136px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* padding: 100px 0; */
}

.nav-button {
    display: flex;
    width: 180px;
    height: 72px;
    padding: 12px 0;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    color: #FFF;
    font-size: clamp(14px, 2vw, 32px);
    font-weight: 700;
    text-decoration: none;
    /* padding: 20px 0; */
}

.news {
    background: #D70913;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.calendar {
    background: rgba(183, 43, 47, 0.00);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

/* .divider {
    width: 64px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
} */



.nav-buttons .divider svg {
    outline: none;
    pointer-events: none;
}

.top {
    width: 1400px;
    padding:140px 0px 60px;
    margin: 0 auto;
}

.top .route {
    width: 1400px;
    font-size: 16px;
    padding: 20px 0;
    margin-left: 224px;
    margin: 0 auto;
}

.top .title {
    width: 1400px;
    font-size: 72px;
    font-weight: bold;
    margin: auto;
    /* padding: 0px 10px; */
}


/* ==========================================================================
   4. 新聞區域
   ========================================================================== */
.news-section {
    padding: 10px max(120px, 13%);
}

.news-section h2 {
    font-size: clamp(32px, 4vw, 52px);
    padding: 20px 0;
    margin-top: 100px;
}

.news-section h2 span {
    color: rgba(0, 0, 0, 0.50);
    font-size: clamp(20px, 2vw, 32px);
    margin-left: 10px;
}

.news-classification {
    width: 1400px;
    height: 100px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    /* 均分間距 */
    background-color: #f7f7f7;
    /* 整個區域的背景色 */
    border-radius: 20px;
    /* 圓角效果 */
    overflow: hidden;
    /* 防止內容溢出 */
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.2);
    /* 增加陰影效果 */
    margin-bottom: 120px;
}

.news-item {
    flex: 1;
    display: flex;
    justify-content: center;
    /* 水平置中 */
    align-items: center;
    /* 垂直置中 */
    text-align: center;
    /* 文字置中 */
    padding: 10px 0;
    font-size: 32px;
    cursor: pointer;
    position: relative;
}

.news-item::before {
    content: "";
    position: absolute;
    width: 1px;
    background-color: #596260;
    height: 50%; 
    opacity: 0.3;
    top: 25%; /* 讓邊框垂直置中 */    
}

.news-item::before {
    left: 0; /* 左邊框 */
}

/* .news-item::after {
    right: 0;
} */

.news-item:first-child::before {
    display: none;
}

.news-item:last-child::after {
    display: none;
}


.news-item:first-child {
    background-color: #fff;
    /* 突出第一項的背景色 */
    /* color: #fff; */
    /* 白色文字 */
    border-radius: 8px 0 0 8px;
    /* 圓角效果 */
}

.news-item:last-child {
    border-radius: 0 8px 8px 0;
    /* 圓角效果 */
}

.news-item:not(:first-child) {
    background-color: #fff;
    /* 預設背景 */
    color: #000;
    /* 黑色文字 */
}

.news-item:not(:first-child):hover {
    cursor: pointer;
    /* background-color: #e6e6e6; */
    /* 滑鼠懸停效果 */
}

.news-item.active {
    background-color: #FF7E00; /* 突出选中的项 */
    color: #fff;
  }


/* ===================================
副標題
=================================== */

.section-title {
    width: 1400px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0px 0px 60px;
    margin: 0  auto;
    
}

.section-title h2 {
    /* width: 1400px; */
    font-size:  52px;
    font-weight: 700;
}

span.en-title {
    color: rgba(0, 0, 0, 0.50);
    font-size:  32px;
    margin-left: 10px;
    font-weight: 700;
}


.history-content {
    width: 1400px;
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 0px 0px 60px;
    font-size: 32px;
    margin: 0 auto;

}

.history {
    display: none;
}

.history.active {
    display: block;
}

/* 校長圖卡 */
.profile-card {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    display: flex;
    gap: 120px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 540px;
    /* height: 480px; */
    /* border-radius: 20px; */
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.profile-info {
    flex: 1;
    padding: 1rem 0;
}

.profile-info h2 {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #333;
}

.education-timeline h3 {
    font-size: 32px;
    /* font-weight: bold; */
    color: #333;
    margin-bottom: 20px;
    font-family: "Noto Sans TC", sans-serif;
}

.profile-info p {
    font-size: 32px;
    /* font-weight: bold; */
    color: #333;
    margin: 10px 0;
    line-height: 1.5;
    font-family: "Noto Sans TC", sans-serif;
}

.education-timeline {
    margin-top: 2rem;
    position: relative;
}

/* 添加時間軸垂直線 */
.education-timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 100px; /* 調整起始位置到第一個圓點下方 */
    width: 2px;
    height: calc(100% - 120px); /* 調整線條長度 */
    background: #666;
}

.education-item {
    font-size: 24px;
    position: relative;
    padding-left: 80px;
    margin: 40px 0 20px ;
}

/* 修改圓點樣式 */
.education-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: #666;
    border: 2px solid #666;
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        padding: 1rem;
    }

    .profile-image {
        flex: 0 0 auto;
    }
}

/* ===============手風琴============ */

.accordion {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.accordion-item {
    /* margin-bottom: 32px;
    height: auto; */
    /* overflow: hidden; */
    width: 100%;
    height: auto;
    min-height: 50px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease; 
}

.accordion-content {
    display: grid;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    gap: 16px;
    margin-top: 40px;
    
    position: relative;
    padding-left: 150px;
}


.accordion-content-info {
    /* display: flex; */
    position: relative;
    font-size: 32px;
    height: 132px;
    gap: 20px;
    align-items: center;
    padding: 0 30px;
    background-color: #ffffff;
    border-radius: 20px;
    /* margin:0 0 12px 120px; */
    margin:0 0 12px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.accordion-content h2 {
    padding: 12px 0 12px 0;
    font-size: 32px;
    
}

.accordion-content p {
    padding: 8px 0 8px 0;
    font-size: 24px;
    
}

.accordion-button.active + .accordion-content {
    max-height: 1800px;
}


.accordion-button {
    font-size: 32px;
    width: 100%;
    height: 120px;
    background-color: #596260;
    color: #ffffff;
    padding: 20px 40px;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s;
    cursor: pointer;
    position: relative;
    border-radius: 30px;
}

.accordion-button::after {

    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-image: url('../img/open.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-image: url('../img/close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}
/* hover效果 */
/* .accordion-button:hover,
.accordion-button:focus {
    background-color: #596260;
} */

/* ==========手風琴時間軸=========== */

/* 垂直時間軸線 */
.accordion-content::before {
    /* content: '';
    position: absolute;
    left: 68px;
    top: 60px;
    height: 89%;
    width: 4px;
    background-color: #000000; */
    content: '';
    position: absolute;
    left: 68px;
    top: 60px;
    /* top: 0px; */
    /* 計算高度到最後一個圓點的位置 */
    height: calc(100% - 138px); 
    /* height: 100%; */
    width: 4px;
    background-color: #000000;
}


/* 時間軸圓點 */
.accordion-content-info::before {
    content: '';
    position: absolute;
    left:-90px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #000000;
    z-index: 1;
}











/* 頁面頁面 */
.page {
    width: 1400px;
    margin: auto;
    padding: 20px 0px 120px 0px;
}

.page-btn-all {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.page-toggle {
    display: none;
}

.page-btn {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    padding: 10px;
    cursor: pointer;
}

.page-toggle:checked+.page-btn {
    background-color: #00B4A9;
    color: white;
    border-radius: 50%;
}

.page-btn-all i {
    cursor: pointer;
    /* 設置手形指標 */
}

















/* ==========================================================================
   頁尾
   ========================================================================== */
.footer-top {
    background-color: #596260;
    display: flex;
    width: 100%;
    height: auto;
    padding: 60px 40px;
    flex-direction: column;
    gap: 78px;
}

.header-group {
    display: flex;
    align-items: center;
}

.school-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 28px;
}

.footer-logo {
    width: clamp(80px, 8vw, 117px);
    height: 136px;
}

.school-name {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.school-name h3 {
    color: #FFF;
    font-family: Inter;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
}

.school-name p {
    color: #FFF;
    /* font-family: Inter; */
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
}

.content-group {
    color: #FFF;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-left: 20px;
}

.nav-items {
    display: flex;
    gap: 5px;
}

.nav-item {
    display: flex;
    /* width: 60px; */
    height: 64px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.nav-item img {
    width: 70px;
    height: 70px;

}

.nav-item span {
    width: 130px;
    height: 29px;
    color: #FFF;
    text-align: center;
    font-size: 18px;
}


.school-address {
    width: 40%;
    min-width: 600px;
    max-width: 900px;
    color: #FFF;
    font-family: Inter;
    font-size: 22px;
    font-weight: 400;
    line-height: normal;
}

.footer-bottom {
    display: flex;
    width: 100%;
    height: 80px;
    padding: 0px 60px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #000;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 56px;
}

.footer-link {
    color: #FFF;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 56px;
    color: #FFF;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* ==========================================================================
   漢堡選單
   ========================================================================== */
   body.menu-open {
    overflow: hidden;
 }
   #hollow{
     margin-top: px;
   }
   
   .hamburger {
    display: flex;
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 15px;
    font-size: 700;
    /* 添加這兩行 */
    z-index: 1000;
    position: relative;
 }
 
 .hamburger span {
    display: block;
    width: 100%;
    height: 5px;
    background-color: white;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
 }
 
 .hamburger.active span:first-child {
    transform: rotate(45deg) translate(8px, 8px);
 }
 
 .hamburger.active span:nth-child(2) {
    opacity: 0;
 }
 
 .hamburger.active span:last-child {
    transform: rotate(-45deg) translate(8px, -8px);
 }
 
 /* 漢堡選單 */
 .hamburger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #596260;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
 }
 
 .hamburger-menu nav {
     position: relative;  
     padding: 10px 50px 0 50px;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin: 0;
     background: transparent !important;
     height: auto;
 }
 .hamburger-menu.active {
    right: 0;
 }
 
 /* 內容區域 */
 .vertical-lines {
    position: absolute;
    top: 180px;
    left: 0;
    right: 0;
    height: calc(100vh - 290px);
    pointer-events: none;
 }
 .vertical-line {
    position: absolute;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    height: 613px;
    top: 0;
 }
 .line-left {
    left: 33.33%;
    width: 3px;
    background-color: white;
 }
 .line-right {
    left: 66.66%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
 }
 
 .menu-text {
    color: white;
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 500;
    padding-left: 48px;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease-out, color 0.3s ease-out;
 }
 .hamburger-logo {
    width: 117px;
    height: 144px;
    object-fit: contain;
    margin: 0;
 }
 .close-btn {
    color: white;
    position: absolute;
    right: 70px;
    top: 65px;
 }
 .close-btn-line {
    color: white;
    position: absolute;
    right: 180px;
    top: 30px;
    margin: 20px 0 40px 65px;
 }
 .menu-item {
    position: relative;
    height: 67px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
 }
 .menu-text:hover {
    transform: translateX(10px);
    color: #FFEFCB;
 }
 .highlight-bar {
    position: absolute;
    right: -1px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #F3B95F;
    display: none;
 }
 .menu-item.active .highlight-bar {
    display: block;
 }
 .content-panel {
    position: absolute;
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
 }
 .content-panel.active {
    display: flex;
 }
 .content-item {
    position: absolute;
    left: 0;
    color: white;
    font-size: 28px;
    font-weight: 500;
    padding-left: 48px;
    height: 67px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-out, color 0.3s ease-out;
    width: 100%;
 }
 .content-item:hover {
    transform: translateX(10px);
    color: #FFEFCB;
 }
 
 .hollow{
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    height: 490px;
    object-fit: contain;
    margin-top: 72px;
 }
 
 /* Modified social icons styles */
 .social-icons {
    position: absolute;
    bottom: 110px;
    left: 90px;
    display: flex;
    gap: 20px;
    padding-bottom: 48px;
    width: calc(100% - 96px);
 }
 .social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
 }
 .social-item img {
    width: 48px;
    height: 48px;
 }
 .social-item span {
    color: white;
    font-size: 14px;
    text-align: center;
    font-weight: 900;
 }
 .menu-container {
    padding-top: 12px;
 }
 .content-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* margin-top: -15px; */
 }
 
 .hamburger-menu nav .flex.items-start {
    position: static;
 }
 /* ==========================================================================
   漢堡條應式設計
   ========================================================================== */
 @media screen and (max-width: 1200px) {
    .hamburger-cards,
    .hamburger-bottom-cards {
        grid-template-columns: repeat(2, 1fr);
    }
 }
 
 @media screen and (max-width: 768px) {
    .hamburger-menu-content {
        padding: 1rem;
    }
    
    .hamburger-cards,
    .hamburger-bottom-cards {
        grid-template-columns: 1fr;
    }
    
    .hamburger-right-section {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .hamburger-nav-links {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .hamburger-logo {
        width: 80px;
        height: 80px;
    }
    
    .hamburger-nav-link {
        font-size: 20px;
    }
 }
 @media screen and (max-width: 480px) {
    .hamburger {
        display: flex;
        width: 60px;
        height: 80px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        background-color: transparent;
        border: none;
        padding: 15px;
        z-index: 1000;
        position: relative;
    }
  
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: transform 0.3s, opacity 0.3s;
    }
  
    /* 分隔線 */
    .divider {
        display: none;
    }
  
    /* 漢堡選單展開樣式 */
    .hamburger-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #596260;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
    }
  
    .hamburger-menu nav {
        height: auto;
        padding: 0;
    }
  
    .hamburger-menu.active {
        right: 0;
    }
  
    /* Logo和關閉按鈕 */
    .hamburger-logo {
        width: 40px;
        height: 40px;
        margin: 10px;
    }
  
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 20px;
        height: 20px;
    }
  
    .close-btn-line,
    .vertical-lines,
    .hollow {
        display: none;
    }
  
    /* 選單容器 */
    .menu-container {
        width: 100%;
        padding-top: 0px;  /* 增加頂部間距 */
    }
  
    .flex.justify-between {
        flex-direction: column;
    }
  
    .flex.justify-between > div[class*="w-1/3"] {
        width: 100% !important;
    }
  
    /* 選單項目 */
    .menu-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height: auto;  /* 移除固定高度 */
        margin: 0;
    }
  
    .menu-text {
        font-size: 18px;
        padding: 0;
        width: 100%;
        justify-content: space-between;  /* 在文字和箭頭之間添加空間 */
        position: relative;  /* 為箭頭定位做準備 */
    }
  
    /* 箭頭指示器 */
    .menu-item::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: white;
        transition: transform 0.3s ease;
    }
    .menu-item:not([data-tab="6"]):not([data-tab="7"])::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: white;
        transition: transform 0.3s ease;
    }
    .menu-item.active:not([data-tab="6"]):not([data-tab="7"])::after {
        transform: translateY(-50%) rotate(180deg);
    }
  
    .menu-item.active::after {
        transform: translateY(-50%) rotate(180deg);
    }
  
    /* 內容面板 */
    .content-panel {
        position: static;  /* 改為靜態定位 */
        width: 100%;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 0;
        transform: none;  /* 移除transform */
        opacity: 1;
        display: none;
        margin-top: -24px;
    }
  
    .content-panel.active {
        display: block;
    }
  
     .content-item {
        position: relative;
        left: auto;
        padding: 12px 35px;
        height: auto;
        font-size: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
  
  
    /* 針對行政專區和網站導覽移除箭頭 */
    .menu-item[data-tab="6"]::after,
    .menu-item[data-tab="7"]::after {
        display: none;
    }
  
    /* Banner區域 */
    .upper-part {
        border-radius: 0;
        padding-bottom: 0;
    }
  
    .banner-container {
        padding: 0;
    }
    
    .banner {
        height: 360px;
        border-radius: 0;
        overflow: hidden;
    }
  
    .owl-container {
        display: none;
    }
  }
  



/* ==========================================================================
   其他響應式設計
   ========================================================================== */
@media screen and (max-width: 1440px) {
    .video-section {
        width: 95%;
        margin-top: -180px;
    }
}

@media screen and (max-width: 1024px) {
    .video-section {
        width: 100%;
        border-radius: 50px 0 0 50px;
        margin-top: -150px;
    }
}

@media screen and (max-width: 768px) {
    .nav-buttons {
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .news-header {
        gap: 10px;
    }

    .fixed-title {
        padding-left: 100px;
    }

    .video-section {
        padding: 30px 40px;
        margin-top: -120px;
    }
}

@media screen and (max-width: 480px) {
    /* Navigation adjustments */
    nav {
        padding: 16px 20px;
        height: 80px;
    }

    .logo {
        left: 20px;
        width: 60px;
        height: 70px;
    }

    .logo img {
        width: 60px;
        height: 70px;
        margin-top: 5px;
    }

    .nav-buttons a,
    .divider {
        display: none;
    }

    .hamburger {
        width: 60px;
        height: 60px;
        gap: 7px;
    }

    /* Main content adjustments */
    .mid-part {
        padding-top: 80px;
    }

    .top {
        padding: 20px;
        width: 100%;
    }

    .top .route {
        width: 100%;
        margin: 0;
        font-size: 14px;
        padding: 10px 0;
    }

    .top .title {
        width: 100%;
        font-size: 32px;
        padding: 0;
        margin: 0;
    }

    /* Classification panel */
    .news-classification {
        width: calc(100% - 40px);
        height: 60px;
        margin: 0 20px 40px;
        border-radius: 10px;
    }

    .news-item {
        font-size: 16px;
        padding: 0;
    }

    /* Main section adjustments */
    .section-title {
        width: 100%;
        padding: 0 20px 30px;
        margin: 0;
    }

    .section-title h2 {
        font-size: 28px;
        margin: 0;
    }

    span.en-title { 
        font-size: 18px;
    }

    /* .en-title {
        font-size: 18px;
    } */

    .history-content {
        width: 100%;
        padding: 0 20px 30px;
        font-size: 16px;
        margin: 0;
    }

    /* Profile card */
    .profile-card {
        margin: 20px;
        padding: 20px;
        gap: 20px;
        flex-direction: column;
    }

    .profile-image {
        width: 100%;
    }

    .profile-info {
        width: 100%;
    }

    .profile-info h2,
    .profile-info p {
        font-size: 18px;
    }

    .education-timeline h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .education-item {
        font-size: 16px;
        margin: 16px 0;
        padding-left: 40px;
    }

    .education-item::before {
        left: 12px;
        width: 12px;
        height: 12px;
    }

    .education-timeline::before {
        left: 17px;
        top: 60px;
        height: calc(100% - 90px);
        width: 2px;
    }
        


    /* Accordion section */
    .accordion {
        width: 100%;
        padding: 0 20px;
        margin: 0;
    }

    .accordion-item {
        margin-bottom: 20px;
    }

    .accordion-button {
        font-size: 18px;
        height: 60px;
        padding: 10px 20px;
        border-radius: 15px;
    }

    .accordion-button::after {
        width: 20px;
        height: 20px;
        right: 15px;
    }

    .accordion-button.active::after {
        width: 20px;
        height: 20px;
        right: 15px;
    }

    .accordion-content {
        padding-left: 30px;
        margin-top: 20px;
        gap: 10px;
    }

    .accordion-content-info {
        height: auto;
        min-height: 100px;
        padding: 15px;
        margin-bottom: 10px;
    }

    .accordion-content-info h2 {
        font-size: 18px;
        padding: 0 0 4px;
    }

    .accordion-content-info p {
        font-size: 16px;
        padding: 0;
    }

    .accordion-content::before {
        left: 13px;
        top: 50px;
        height: calc(100% - 110px);
        width: 2px;
    }

    .accordion-content-info::before {
        left: -22px;
        width: 12px;
        height: 12px;
    }

    /* Footer adjustments */
    .footer-top {
        padding: 30px 20px;
        gap: 20px;
    }

    .header-group {
        flex-direction: column;
    }

    .school-title {
        margin: 0;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-logo {
        width: 80px;
        height: auto;
    }

    .school-name {
        text-align: center;
    }

    .school-name h3 {
        font-size: 18px;
    }

    .school-name p {
        font-size: 14px;
    }

    .content-group {
        flex-direction: column;
        align-items: center;
        margin: 0;
        gap: 20px;
    }

    .nav-items {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        padding: 0;
        width: 100%;
    }

    .nav-item img {
        width: 32px;
        height: 32px;
    }

    .nav-item span {
        font-size: 10px;
        width: auto;
        height: auto;
    }

    .school-address {
        min-width: unset;
        width: 100%;
        font-size: 14px;
        text-align: center;
        line-height: 1.6;
    }

    .footer-bottom {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        height: auto;
    }

    .footer-left {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .footer-link, 
    .footer-right span {
        font-size: 12px;
    }
}





/* ==========================================================================
   動畫
   ========================================================================== */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}