* {
    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: #fff;
    overflow-y: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

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

.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 {
    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;
}

.calendar {
    background: rgba(183, 43, 47, 0.00);
}

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

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





.main {
    background-color: #F2F1E8;
    margin-top: 136px;
    /* 設置上方間距等於導航欄高度 */
    position: relative;
}

.top {
    width: 100%;
    margin-bottom: 30px;
    padding: 20px 60px;
    padding-top: 40px;
    
}

.route {
    margin-top: -26px;
    margin-left: 300px;

}


.top .route {
    width: 100%;
    font-size: 16px;
    /* padding: 0px 5px; */
    margin-bottom: 20px;
    /* 增加與標題的間距 */
}

.top .title {
    width: 100%;
    font-size: 72px;
    font-weight: bold;
    margin: 0 auto;
    padding: 30px 50px;
    /* 增加上下間距 */
    position: relative;
    /* 確保標題正確定位 */
    margin-left: 250px;
}

/* 左側按鈕區域 */
/* .left-side {
    position: absolute;
    left: 70px;
    width: 120px;
    margin-top: 20px;
} */

.left-side {
    position: fixed;
    left: 70px;
    width: 120px;
    margin-top: 20px;
    opacity: 1; /* 初始狀態是顯示 */
    visibility: visible; /* 初始狀態是顯示 */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* 添加過渡效果 */
}


.all-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: -190px;
}

.activity-btn {
    width: 180px;
    height: 72px;
    border-radius: 20px;
    background: opac;
    color: #027F77;
    border: 3px solid #027F77;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

/* 內容區域 */
.content-area {
    margin-left: 180px;
    /* 減少左邊距 */
    padding-right: 40px;
    /* 減少右邊距 */
}





/* 國際交流標題 */
.section-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    margin-left: 50px;
    margin-top: -100px;
    padding-top: 80px;

}

.section-title h2 {
    font-size: 52px;
    padding: 20px 0;
    /* margin-top: 100px; */
    font-weight: 700;
    /* margin-left: 23px; */
    margin-right: 20px;
    
}

.section-title .en-title {
    color: rgba(0, 0, 0, 0.50);
    font-size: 32px;
    font-weight: 700;

}

/* 活動標題 */
.activity-title {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 140px 0 80px 50px;
}

.activity-title h2 {
    font-size: 52px;
    padding: 20px 0;
    margin-top: 100px;
    font-weight: 700;
    /* margin-left: 23px; */
    margin-right: 20px;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
    /* 限制最大寬度 */
    margin-left: 80px;
}


.card {
    background: #FF7E00;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 500px;
    /* 使用固定高度 */
    max-width: 600px;
}

/* 隔行錯位效果 */
.card:nth-child(even) {
    transform: translateY(20px);

}

.card:nth-child(odd) {
    transform: translateY(20px);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 360px;
    /* 固定圖片容器高度 */
    padding: 15px;
}

.card-image {
    width: 100%;
    height: 100%;
    /* 讓圖片填滿容器 */
    border-radius: 16px;
    object-fit: cover;
}


.card-content {
    padding: 15px 20px;
    flex: 1;
    /* 讓內容區域填充剩餘空間 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 讓標題和時間分布在兩端 */
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    font-family: "Noto Sans TC";
    font-size: 28px;
    /* 調小字體大小 */
    font-weight: 400;
    margin-bottom: 8px;
}


.arrow-icon {
    width: 40px;
    /* 調整箭頭大小 */
    height: 40px;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;

}


.time-icon {
    width: 20px;
    /* 調整時鐘圖標大小 */
    height: 20px;
}

.card-time {
    color: #FFF;
    font-family: "Noto Sans TC";
    font-size: 20px;
    /* 調小時間字體 */
    font-weight: 400;
}

.content-area {
    margin-left: 250px;
    padding: 0 60px;
    margin-bottom: 40px;
    /* 添加底部間距 */
}




.learning-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0 120px 60px;
    width: 100%;
    max-width: 1200px;
}

.learning-card {
    background: #005095;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    /* 固定高度 */
    min-height: 500px;
    /* 確保最小高度 */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin-left: 20px;
    
}

.learning-card .card-image-container {
    position: relative;
    width: 100%;
    flex: 1;
    padding: 15px;
    height: 360px;
    /* 調整圖片容器高度 */
}

.learning-card .card-image {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
}

.learning-card .card-content {
    padding: 20px;
    height: 140px;
    /* 確保內容區域高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.learning-card .card-title {
    display: flex;
    color: #FFF;
    font-family: "Noto Sans TC";
    font-size: 28px;
    font-weight: 400;
}


.learning-card .card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    margin-top: auto;
    /* 將時間推到底部 */
}

.learning-card .time-icon {
    width: 20px;
    height: 20px;
}

.learning-card .card-time {
    color: #FFF;
    font-family: "Microsoft JhengHei";
    font-size: 20px;
    font-weight: 400;
}


.card-time {
    font-family: "Microsoft JhengHei";
}







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

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

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

.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: 80px;
    height: 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: 480px) {
    /* Navigation */
    nav {
        padding: 16px 20px;
        height: 80px;
    }

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

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

    .fixed-title {
        left: 20px;
        padding-left: 70px;
        font-size: 24px;
        top: 15px;
    }

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

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

    /* Main Content Structure */
    .main {
        margin-top: 80px;
    }

    .top {
        padding: 20px;
        margin-bottom: 20px;
    }

    .route {
        margin-top: 0;
        margin-left: 0;
        font-size: 14px;
    }

    .top .title {
        width: 100%;
        font-size: 52px;
        margin: 0 auto;
        padding: 0px;
       display: flex;
       justify-content: center;
       align-items: center;

        margin-left: 0px;
    }

    /* Button Section */
    .left-side {
        position: static;
        width: 100%;
        margin: 20px 0;
    }

    .all-btn {
        margin-top: 0;
        padding: 0 20px;
    }

    .activity-btn {
        width: 100%;
        height: 50px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Content Area */
    .content-area {
        margin-left: 0;
        padding: 0 20px;
    }

    /* Section Titles */
    .section-title {
        margin: 30px 0;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

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

    .section-title .en-title {
        font-size: 18px;
        margin-left: 0;
    }

    /* Card Grid */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .card {
        height: auto;
        transform: none !important;
    }

    .card-image-container {
        height: 200px;
    }

    .card-content {
        padding: 12px 15px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-time {
        font-size: 16px;
    }

    /* Activity Section */
    .activity-title {
        margin: 40px 0 20px 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-title h2 {
        font-size: 28px;
        padding: 10px 0;
        margin: 0;
    }

    .activity-title span {
        font-size: 18px;
        margin-left: 0;
    }

    /* Learning Cards */
    .learning-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0 40px 0;
    }

    .learning-card {
        margin-left: 0;
        height: auto;
    }

    /* Footer */
    .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;
    }
}