@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 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;
    }
}

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

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

/* Content Container */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Image Section */
.image-section {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text Content */
.text-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.text-section {
    max-width: 800px;
    margin: 0 auto;
}

.text-section h2 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: #333333;
}

.text-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* Image Grid */
.image-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.rectangle-image {
    width: 800px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rectangle-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rectangle-image {
        width: 600px;
    }
}

@media (max-width: 768px) {
    .rectangle-image {
        width: 100%;
    }
}
