/* ===== 教職員 Section ===== */
.staff-section {
    padding: 100px 20px;
    background: radial-gradient(
        ellipse at top,
        rgba(60, 80, 120, 0.25),
        rgba(5, 10, 25, 0.95)
    );
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.staff-title {
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.staff-subtitle {
    font-size: 14px;
    color: #aab4d4;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

/* ===== Grid ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* ===== Card ===== */
.staff-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 30px 20px;
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Avatar ===== */
.staff-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Text ===== */
.staff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.staff-role {
    font-size: 14px;
    color: #c2c9e8;
    letter-spacing: 1px;
}

/* ===== 中心成員介紹 ===== */
/* ===== 成員簡介頁 ===== */
.staff-detail-section {
    min-height: 100vh;
    padding: 120px 20px;
    background: radial-gradient(
        ellipse at top,
        rgba(50, 70, 110, 0.3),
        rgba(4, 8, 20, 0.95)
    );
    color: #ffffff;
}

.staff-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== 主結構 ===== */
.staff-profile {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== Avatar ===== */
.profile-avatar {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Info ===== */
.profile-info {
    text-align: left;
}

.profile-name {
    font-size: 34px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 16px;
    color: #b8c2f0;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.profile-description {
    font-size: 16px;
    line-height: 1.9;
    color: #e2e6ff;
    margin-bottom: 40px;
}

/* ===== 區塊 ===== */
.profile-block {
    margin-bottom: 32px;
}

.profile-block h3 {
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    border-left: 3px solid #7f8cff;
    padding-left: 10px;
}

.profile-block ul {
    padding-left: 20px;
    margin: 0;
}

.profile-block li {
    margin-bottom: 8px;
    color: #cfd5ff;
}

.profile-block a {
    color: #9fb0ff;
    text-decoration: none;
}

.profile-block a:hover {
    text-decoration: underline;
}

/* ===== RWD ===== */
@media (max-width: 900px) {
    .staff-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .profile-info {
        text-align: center;
    }

    .profile-block h3 {
        border-left: none;
        border-bottom: 2px solid rgba(127, 140, 255, 0.6);
        padding-left: 0;
        padding-bottom: 6px;
    }
}

/* ===== 教職員 Section 結束 ===== */

/* ===== 消息公告 ===== */
/* ===== 公告列表 ===== */
.news-section {
    padding: 120px 20px;
    min-height: 100vh;
    background: radial-gradient(
        ellipse at top,
        rgba(40, 60, 100, 0.25),
        rgba(3, 7, 18, 0.95)
    );
    color: #ffffff;
}

.news-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Header ===== */
.news-header {
    text-align: center;
    margin-bottom: 70px;
}

.news-title {
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.news-subtitle {
    font-size: 14px;
    color: #aeb6df;
    letter-spacing: 1px;
}

/* ===== List ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===== Item ===== */
.news-item {
    display: flex;
    gap: 30px;
    padding: 22px 26px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
}

/* ===== Date ===== */
.news-date {
    min-width: 70px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 24px;
}

.news-date .day {
    font-size: 26px;
    font-weight: 600;
}

.news-date .month {
    font-size: 12px;
    letter-spacing: 2px;
    color: #9aa7e8;
}

/* ===== Content ===== */
.news-content {
    flex: 1;
}

.news-category {
    display: inline-block;
    font-size: 12px;
    color: #8ea0ff;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.news-item-title {
    font-size: 18px;
    line-height: 1.5;
}

/* ===== RWD ===== */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 14px;
    }

    .news-date {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-bottom: 12px;
        text-align: left;
    }
}

/* ===== 公告內容頁 ===== */
/* ===== 公告詳細頁 ===== */
.news-detail-section {
    min-height: 100vh;
    padding: 120px 20px;
    background: radial-gradient(
        ellipse at top,
        rgba(35, 55, 95, 0.3),
        rgba(2, 6, 18, 0.95)
    );
    color: #ffffff;
}

.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Header ===== */
.news-detail-header {
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 30px;
}

.news-category {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 1px;
    color: #9fb0ff;
    margin-bottom: 10px;
}

.news-title {
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.news-meta {
    font-size: 14px;
    color: #b4bddf;
}

/* ===== Content ===== */
.news-content {
    font-size: 16px;
    line-height: 2;
    color: #e3e7ff;
}

.news-content p {
    margin-bottom: 24px;
}

.news-content h2 {
    font-size: 22px;
    margin: 40px 0 18px;
    letter-spacing: 1px;
    border-left: 4px solid #7f8cff;
    padding-left: 12px;
}

.news-content ul {
    padding-left: 22px;
    margin-bottom: 30px;
}

.news-content li {
    margin-bottom: 10px;
}

/* ===== Links ===== */
.news-link {
    color: #9fb0ff;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* ===== Back ===== */
.news-back {
    margin-top: 60px;
}

.news-back a {
    color: #aab6ff;
    text-decoration: none;
    font-size: 14px;
}

.news-back a:hover {
    text-decoration: underline;
}

/* ===== RWD ===== */
@media (max-width: 768px) {
    .news-title {
        font-size: 26px;
    }
}

@media only screen and (max-width: 1023px) {
    .sidenav-bar {
        width: 88vw;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-transition: -webkit-transform 300ms ease, opacity 300ms ease;
        transition: transform 300ms ease, opacity 300ms ease;
    }

    .sidenav-bar-visible .sidenav-bar {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .sidenav-bar .menu-box {
        background: #252525;
        height: 100%;
        opacity: 1;
        visibility: visible;
        -webkit-transform: none;
        transform: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sidenav-bar .side-nav {
        margin-top: 24px;
    }

    .sidenav-bar .navigation > li {
        left: 0;
    }
}
