@font-face {
    font-family: 'LogoFont';
    src: url('../fonts/Clerical_logo.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'LogoFont', 'Microsoft YaHei', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    font-family: 'Microsoft JhengHei', sans-serif;
    color: #000000;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0.2rem 0;
}

.nav-links a:hover {
    color: #666666;
}

/* To handle mobile menu */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s linear;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    font-size: 1.4rem;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: auto;
    margin-top: 60px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Main Content adjustments */
.main-content {
    margin-top: 0;
    padding: 40px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 200px;
        margin-top: 50px;
    }
}

/* Announcements */
.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.announcement-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.announcement-date {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.announcement-content h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333333;
}

.announcement-text {
    color: #333333;
    line-height: 1.8;
}

.announcement-text p {
    margin-bottom: 15px;
}

.announcement-text strong {
    font-weight: bold;
}

.signature {
    margin-top: 20px;
    text-align: right;
    color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .main-content {
        margin-top: 60px;
        padding: 15px;
    }

    .announcement-card {
        padding: 20px;
    }
}
