@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;
    }
}
/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 60px;
}

/* Image Slider */

.slider-container {
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-arrow {
        left: 10px;
    }

    .next-arrow {
        right: 10px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.slide.previous {
    transform: translateX(-100%);
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Announcements */
.announcements {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.announcements h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333333;
}

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

.announcement-card:last-child {
    margin-bottom: 0;
}

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

.announcement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333333;
}

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

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

.announcement-text p:last-child {
    margin-bottom: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links a {
        font-size: 1.2rem;
    }
}

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

    .nav-links {
        display: none;
    }

    .announcements {
        padding: 0 15px;
    }

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