/* =====================================================
   CCWM Website - Simple Academic Style
   Inspired by ICCM design with modern responsive features
   ===================================================== */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== Logo Section ===== */
.logo-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 20px 0;
}

.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.main-nav {
    margin-bottom: 30px;
}

.main-nav ul {
    list-style-type: disc;
    padding-left: 40px;
}

.main-nav li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.main-nav a {
    color: #0000EE;
    text-decoration: none;
    font-size: 16px;
}

.main-nav a:hover {
    text-decoration: underline;
}

.main-nav a.active {
    color: #551A8B;
    text-decoration: underline;
}

/* ===== Mobile Menu Toggle ===== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Main Content ===== */
.content {
    margin-bottom: 40px;
    min-height: 400px;
}

.content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
    font-weight: bold;
}

.content h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000;
    font-weight: bold;
}

.content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* ===== About Page ===== */
.about-content {
    line-height: 1.8;
}

.chinese-text {
    color: #333;
    line-height: 1.9;
}

/* ===== Charter Page ===== */
.charter-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0000EE;
}

.charter-section h2 {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #0000EE;
    padding-bottom: 10px;
}

.charter-subsection {
    margin-bottom: 25px;
}

.charter-subsection h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.charter-content {
    line-height: 1.7;
}

.charter-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.charter-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.charter-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.charter-content li strong {
    font-weight: bold;
    color: #000;
}

.charter-footer-notes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.charter-footer-notes ol {
    margin: 0;
    padding-left: 20px;
}

.charter-footer-notes li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===== News & Events List ===== */
.news-list,
.events-list {
    margin-top: 20px;
}

.news-item,
.event-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.news-date,
.event-date {
    min-width: 150px;
    font-weight: bold;
    color: #333;
}

.news-title,
.event-title {
    flex: 1;
}

.news-title a,
.event-title a {
    color: #0000EE;
    text-decoration: none;
}

.news-title a:hover,
.event-title a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.show-more-btn {
    margin-top: 20px;
    text-align: left;
}

.show-more-btn button {
    background: none;
    border: none;
    color: #0000EE;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
}

.show-more-btn button:hover {
    text-decoration: underline;
}

/* ===== External Link Notice ===== */
.external-link-notice {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #0000EE;
}

.external-link-notice a {
    color: #0000EE;
    text-decoration: none;
}

.external-link-notice a:hover {
    text-decoration: underline;
}

/* ===== Officer Section ===== */
.officer-section {
    margin-bottom: 40px;
}

.officer-list {
    margin-top: 10px;
}

.officer-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.officer-name {
    font-weight: bold;
    color: #000;
    font-size: 16px;
}

.officer-affiliation {
    color: #333;
    font-size: 15px;
    padding-left: 20px;
}

.officer-link {
    color: #666;
    font-size: 14px;
    padding-left: 20px;
}

.officer-link a {
    color: #0000EE;
    text-decoration: none;
    word-break: break-all;
}

.officer-link a:hover {
    text-decoration: underline;
}

/* ===== Coming Soon ===== */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.coming-soon p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ===== Responsive Design ===== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Mobile (< 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 15px;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo */
    .logo-section {
        margin-bottom: 60px;
    }

    .logo {
        max-width: 100%;
    }

    /* Navigation - Mobile Menu */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #f9f9f9;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 20px 20px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        padding-left: 20px;
    }

    .main-nav li {
        margin-bottom: 15px;
        font-size: 16px;
    }

    /* Content */
    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 20px;
    }

    /* News & Events - Stack Layout */
    .news-item,
    .event-item {
        flex-direction: column;
        gap: 8px;
    }

    .news-date,
    .event-date {
        min-width: auto;
        font-size: 14px;
    }

    /* Officer */
    .officer-name {
        font-size: 15px;
    }

    .officer-affiliation,
    .officer-link {
        font-size: 14px;
        padding-left: 10px;
    }

    /* Charter */
    .charter-section {
        margin-bottom: 30px;
        padding: 15px;
    }

    .charter-section h2 {
        font-size: 20px;
    }

    .charter-subsection h3 {
        font-size: 16px;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .content h1 {
        font-size: 22px;
    }

    .content h2 {
        font-size: 18px;
    }

    .main-nav {
        width: 250px;
    }

    .officer-affiliation,
    .officer-link {
        padding-left: 5px;
    }
}

/* Print Styles */
@media print {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
    }

    .footer {
        border-top: 1px solid #000;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

