/* ===================================
   系統韌性與永續學會 — Stylesheet
   Design: Matching Mockup Layout
   =================================== */

:root {
    /* Palette 1 — 穩健專業 */
    --navy:       #163A70;
    --dark-blue:  #0f274a;
    --teal:       #1F6F8B;
    --mint:       #4CB5AE;
    --light-mint: #8FD5C9;
    --pale:       #EAF3F4;
    --bg-light:   #f5f9fa;
    --white:      #ffffff;
    --text:       #333333;
    --text-light: #666666;
    --border:     #e2eaed;

    --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.25s ease;
    --radius: 10px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 28px rgba(22,58,112,0.12);
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    font-size: 112.5%; /* Base font size increased from default 16px to 18px (112.5%) */
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-weight: 700; color: var(--navy); line-height: 1.35; }
p { color: var(--text-light); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 6px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: none;
    transition: all var(--transition); text-align: center;
    font-family: var(--font);
}

.btn-primary { background: var(--navy); color: var(--white); border-radius: 22px; }
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }

.btn-dark {
    background: var(--navy); color: var(--white);
    padding: 12px 28px; font-size: 1rem;
}
.btn-dark:hover { background: #1a4a8a; }

.btn-outline-green {
    background: var(--white); color: var(--mint); border: 1.5px solid var(--mint);
    padding: 12px 28px; font-size: 1rem;
}
.btn-outline-green:hover { background: var(--mint); color: var(--white); }

.btn-outline-dark {
    background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
    border-radius: 22px;
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

.btn-white {
    background: var(--white); color: var(--navy); padding: 14px 32px;
    font-size: 1.05rem; border-radius: 22px;
}
.btn-white:hover { background: var(--pale); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== SECTION LABEL (left bar) ===== */
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 1.1rem; font-weight: 700; color: var(--navy);
    margin-bottom: 16px;
}

.label-bar {
    display: inline-block; width: 4px; height: 22px;
    background: var(--navy); border-radius: 2px;
}


/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
    z-index: 1000; border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-icon-wrap {
    width: 48px; height: 54px; color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 48px; overflow: hidden; border-radius: 7px;
    background: var(--white);
}

.logo-icon-wrap svg { width: 30px; height: 30px; }

.logo-icon-wrap img {
    display: block;
    width: 100%; max-width: 100%; height: 100%;
    object-fit: contain; object-position: center;
}

.logo-icon-wrap.white { color: var(--white); background: var(--white); }
.logo-icon-wrap.white svg { width: 30px; height: 30px; }

.logo-text { display: flex; flex-direction: column; }

.logo-title {
    font-size: 1.15rem; font-weight: 900; color: var(--navy);
    letter-spacing: 1px; line-height: 1.3;
}

.logo-subtitle {
    font-size: 0.65rem; color: var(--text-light);
    letter-spacing: 0.5px; line-height: 1.2;
}

.nav-links { display: flex; gap: 22px; }

.nav-links a {
    font-size: 0.95rem; font-weight: 500; color: var(--text);
    position: relative; padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--navy);
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-label { display: inline-block; }

/* --- Dropdown Menus --- */
.nav-links li.dropdown { position: relative; }
.nav-links li.dropdown > a.dropdown-toggle { 
    display: flex; align-items: center; gap: 4px; 
}
.nav-links li.dropdown > a.dropdown-toggle svg { 
    width: 14px; height: 14px; transition: transform 0.2s ease; 
}
.nav-links li.dropdown:hover > a.dropdown-toggle svg { 
    transform: rotate(180deg); 
}

.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-md); min-width: 160px; opacity: 0; visibility: hidden;
    transition: all 0.25s ease; padding: 12px 0; margin-top: 15px;
    display: flex; flex-direction: column; z-index: 1000;
}

.nav-links li.dropdown:hover .dropdown-menu { 
    opacity: 1; visibility: visible; margin-top: 5px; 
}

.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: block; padding: 10px 24px; font-size: 0.95rem; color: var(--text);
    width: 100%; transition: all var(--transition);
}
.dropdown-menu a::after { display: none; } /* Remove underline effect for dropdown items */
.dropdown-menu a:hover { 
    background: var(--pale); color: var(--navy); 
}

.nav-btn { font-size: 0.9rem; padding: 8px 20px; }
.nav-btn svg { width: 16px; height: 16px; }

.mobile-menu-toggle {
    display: none; background: none; border: none;
    color: var(--navy); cursor: pointer;
}

/* Keep the full navigation available on tablets while presenting each
   four-character label as a balanced 2×2 block. */
@media (max-width: 1080px) and (min-width: 769px) {
    .nav-container { gap: 12px; }
    .logo-subtitle { display: none; }
    .nav-links {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 10px;
    }
    .nav-links > li { flex: 0 0 auto; }
    .nav-links > li > a {
        display: inline-flex;
        min-width: 3.8rem;
        min-height: 58px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .nav-links > li > a > .nav-label {
        width: 2em;
        white-space: normal;
        word-break: break-all;
        line-height: 1.3;
    }
    .nav-links li.dropdown > a.dropdown-toggle { gap: 3px; }
    .nav-links li.dropdown > a.dropdown-toggle svg {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
    }
    .nav-btn {
        flex: 0 0 auto;
        padding-inline: 10px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .logo-title { font-size: 1rem; letter-spacing: 0; }
    .nav-links { gap: 4px; }
    .nav-links > li > a { min-width: 3.35rem; }
    .nav-btn { padding-inline: 7px; font-size: 0.78rem; }
}


/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 480px;
    overflow: hidden;
    background: #edf7fb;
}

.hero-bg {
    position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
    z-index: 1; pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #edf7fb 0%, rgba(237,247,251,0.55) 9%, rgba(237,247,251,0) 24%);
}

.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: right center;
}

.hero-container {
    position: relative; z-index: 2;
}

.hero-content {
    width: 50%;
    max-width: 560px;
    padding-right: 44px;
}

.hero-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.hero-title span,
.hero-subtitle span { display: block; }

.hero-title span + span { margin-top: 0.12em; }

.hero-subtitle {
    max-width: 500px;
    font-size: 1.04rem;
    color: #3a4a5c;
    margin: 0;
    line-height: 1.9;
    font-weight: 400;
}

.hero-subtitle span + span { margin-top: 0.35em; }

.hero-actions { display: flex; gap: 14px; }


/* ===================================================
   FEATURES BANNER
   =================================================== */
.features-banner {
    position: relative; z-index: 3;
    margin-top: -28px; padding: 0 24px;
}

.features-card {
    display: flex; align-items: center;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 26px 10px;
    border: 1px solid var(--border);
}

.feature-item {
    flex: 1; display: flex; align-items: center;
    gap: 14px; padding: 0 20px;
}

.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-icon.teal { background: #e6f7f5; color: var(--mint); }
.feature-icon.blue { background: #e3eff8; color: var(--teal); }
.feature-icon.navy { background: #e4eaf2; color: var(--navy); }
.feature-icon.dark { background: #eef0f3; color: #445566; }

.feature-text h3 { font-size: 1.05rem; margin-bottom: 2px; }
.feature-text p { font-size: 0.82rem; margin: 0; color: var(--text-light); }

.feature-divider {
    width: 1px; height: 40px; background: var(--border); flex-shrink: 0;
}


/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section { padding: 64px 0 56px; }

.about-layout {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 50px; align-items: start;
}

.about-title {
    font-size: 2rem; margin-bottom: 16px;
}

.about-desc {
    font-size: 1rem; line-height: 1.85; margin-bottom: 24px;
}

.about-right {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.about-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 16px;
    text-align: center; transition: all var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
    border-color: var(--light-mint);
}

.about-card-icon {
    width: 56px; height: 56px; border-radius: 50%;
    margin: 0 auto 16px; display: flex;
    align-items: center; justify-content: center;
    color: var(--white);
}
.about-card-icon svg { width: 26px; height: 26px; }

.blue-grad  { background: linear-gradient(135deg, #1a4a8a, #2980b9); }
.teal-grad  { background: linear-gradient(135deg, var(--teal), var(--mint)); }
.green-grad { background: linear-gradient(135deg, var(--mint), #80d0c7); }

.about-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.about-card p { font-size: 0.88rem; margin: 0; }


/* ===================================================
   CORE ISSUES
   =================================================== */
.issues-section {
    padding: 56px 0; background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.issues-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px; max-width: 1050px; margin: 24px auto 0;
}

.issue-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    text-align: center; transition: all var(--transition);
}

.issue-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
    border-color: var(--light-mint);
}

.issue-card-link {
    display: block; text-decoration: none; color: inherit;
    padding: 0;
}

.issue-img {
    width: 100%; height: auto; aspect-ratio: 3/4;
    margin: 0; overflow: hidden;
    border: none; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
}

.issue-img img { width: 100%; height: 100%; display: block; object-fit: contain; }

.issue-card h3 { font-size: 0.95rem; margin: 12px 0 6px; padding: 0 12px; }
.issue-card p { font-size: 0.82rem; margin: 0; line-height: 1.5; padding: 0 12px 16px; color: var(--text-light); }


/* ===================================================
   NEWS & RESEARCH — Split Layout
   =================================================== */
.news-research-section { padding: 56px 0; }

.news-research-grid {
    display: block; max-width: 900px; margin: 0 auto;
}

.section-header-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
    border-bottom: 1px solid var(--border); padding-bottom: 10px;
}

.view-all-link {
    font-size: 0.9rem; font-weight: 600;
    color: var(--navy); display: flex;
    align-items: center; gap: 4px;
}
.view-all-link:hover { color: var(--mint); }
.view-all-link svg { width: 16px; height: 16px; }

/* News Cards — 3 columns */
.news-cards-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.news-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
    border-color: var(--light-mint);
}

.news-card-img {
    position: relative; width: 100%; height: 120px; overflow: hidden;
}
.news-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.news-tag {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 8px; border-radius: 3px;
    font-size: 0.7rem; font-weight: 700; color: var(--white);
}
.tag-red { background: #c0392b; }
.tag-blue { background: var(--teal); }
.tag-green { background: var(--mint); }

.news-card-body { padding: 12px 14px; }

.news-date {
    font-size: 0.75rem; color: var(--mint);
    font-weight: 700; display: block; margin-bottom: 4px;
}

.news-card-body h4 {
    font-size: 0.9rem; margin-bottom: 4px; line-height: 1.4;
}
.news-card-body > p {
    font-size: 0.8rem; margin: 0 0 8px;
}

.featured-news-card {
    display: block;
}

.featured-news-card .news-card-body { padding: 22px 24px 24px; }

.featured-news-card .news-date {
    color: #b2382c;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.featured-news-card .news-card-body h4 {
    font-size: 1.3rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.featured-news-card .news-card-body > p {
    max-width: 760px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.news-event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.news-event-facts > div { min-width: 0; }

.news-event-facts dt {
    margin-bottom: 4px;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.news-event-facts dd {
    margin: 0;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
}

.news-event-facts small { color: var(--text-light); font-size: 0.78rem; font-weight: 400; }

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-card-link:hover { color: var(--teal); }
.news-card-link svg { width: 14px; height: 14px; }

.news-meta {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 0.75rem; color: var(--text-light);
}
.news-meta span { display: flex; align-items: center; gap: 3px; }
.news-meta svg { width: 12px; height: 12px; }

/* Research Column */
.research-featured {
    display: flex; gap: 20px; align-items: stretch;
    background: var(--bg-light); border: 1px solid var(--border);
    border-left: 4px solid var(--navy); border-radius: var(--radius);
    padding: 20px; margin-bottom: 18px;
    transition: all var(--transition);
}
.research-featured:hover { box-shadow: var(--shadow-md); }

.research-featured-cover {
    width: 120px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.research-featured-cover img {
    width: 100%; height: 100%; object-fit: cover;
}

.research-featured-body { flex: 1; }

.research-featured-badge {
    display: inline-block; padding: 3px 10px;
    background: var(--pale); color: var(--navy);
    font-size: 0.78rem; border-radius: 4px;
    font-weight: 700; margin-bottom: 10px;
}

.research-featured h3 { font-size: 1.15rem; margin-bottom: 8px; }
.research-featured p { font-size: 0.88rem; margin-bottom: 14px; line-height: 1.6; }

.research-list {
    display: flex; flex-direction: column; gap: 12px;
}

.research-list-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
    transition: all var(--transition);
}
.research-list-item:hover {
    box-shadow: var(--shadow-md); border-color: var(--light-mint);
}

.research-item-info { flex: 1; }

.research-item-tag {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    color: var(--mint); margin-bottom: 3px;
}
.research-item-tag.tag-orange { color: #d97706; }

.research-item-info h4 { font-size: 0.95rem; }
.research-item-date { font-size: 0.82rem; color: var(--text-light); white-space: nowrap; }

.download-icon {
    width: 36px; height: 36px; display: flex;
    align-items: center; justify-content: center;
    background: var(--pale); border-radius: 50%;
    color: var(--navy); flex-shrink: 0;
    transition: all var(--transition);
}
.download-icon:hover { background: var(--navy); color: var(--white); }
.download-icon svg { width: 18px; height: 18px; }


/* ===================================================
   JOIN BANNER
   =================================================== */
.join-banner {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    padding: 56px 0; color: var(--white);
}

.join-layout {
    display: flex; align-items: center; gap: 30px;
}

.join-text { flex: 1.2; }
.join-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.join-text p { color: rgba(255,255,255,0.85); font-size: 1rem; margin: 0; }

.join-icons {
    display: flex; gap: 24px; flex: 1.2;
    justify-content: center;
}

.join-icon-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.join-icon-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
}
.join-icon-circle svg { width: 22px; height: 22px; }

.join-icon-item span { font-size: 0.82rem; font-weight: 500; }

.join-cta { flex-shrink: 0; }


/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--dark-blue); color: var(--white);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px; padding-bottom: 40px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-icon-wrap {
    width: 72px; height: 81px;
    flex-basis: 72px;
    border-radius: 10px;
}
.footer-logo .logo-title { color: var(--white); }
.footer-logo .logo-subtitle { color: rgba(255,255,255,0.6); }

.contact-list li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px; color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.contact-list svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }
.contact-list a { color: rgba(255,255,255,0.9); text-decoration: none; }
.contact-list a:hover { color: var(--mint); text-decoration: underline; }

.footer h3 {
    color: var(--white); font-size: 1.1rem;
    margin-bottom: 20px; position: relative; padding-bottom: 10px;
}
.footer h3::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 32px; height: 2px; background: var(--mint);
}

.footer-links-two-col { display: flex; gap: 36px; }

.footer-links-two-col ul li { margin-bottom: 10px; }
.footer-links-two-col a {
    color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
.footer-links-two-col a:hover { color: var(--mint); padding-left: 4px; }

.social-icons { display: flex; gap: 12px; }

.social-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); transition: all var(--transition);
}
.social-icon:hover { background: var(--mint); transform: translateY(-3px); }
.social-icon svg { width: 18px; height: 18px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0; text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }


/* ===================================================
   BOARD OF DIRECTORS / SUPERVISORS
   =================================================== */
.board-section {
    padding: 64px 0 56px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.board-heading {
    font-size: 1.8rem; margin-bottom: 10px;
    text-align: center;
}

.board-heading-supervisor {
    margin-top: 48px;
}

.board-subtitle {
    text-align: center; font-size: 1rem;
    max-width: 680px; margin: 0 auto 36px;
    line-height: 1.8;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

.board-grid-supervisor {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
}

.board-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 14px 20px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.board-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--light-mint);
}

.board-card-chair {
    border-top: 3px solid var(--navy);
    grid-column: 1 / -1;
    max-width: 220px;
    margin: 0 auto;
    width: 100%;
}

.board-card-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    background: var(--navy);
    margin-bottom: 12px;
}

.board-card-badge.standing {
    background: var(--teal);
}

.board-card-badge.director {
    background: var(--mint);
}

.board-card-badge.supervisor-standing {
    background: #8b5cf6;
}

.board-card-badge.supervisor {
    background: #a78bfa;
}

.board-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy), #2563eb);
    color: var(--white);
}

.board-avatar svg { width: 28px; height: 28px; }

.board-avatar.standing {
    background: linear-gradient(135deg, var(--teal), var(--mint));
}

.board-avatar.director {
    background: linear-gradient(135deg, var(--mint), #80d0c7);
}

.board-avatar.supervisor-standing {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.board-avatar.supervisor {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
}

.board-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.board-role-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.board-role-tag.chair { color: var(--navy); }
.board-role-tag.standing { color: var(--teal); }
.board-role-tag.director { color: var(--mint); }
.board-role-tag.supervisor-standing { color: #8b5cf6; }
.board-role-tag.supervisor { color: #a78bfa; }

.board-card-supervisor {
    border-top: 3px solid #a78bfa;
}


/* ===================================================
   MEMBERS SECTION
   =================================================== */
.members-section {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--border);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.member-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.member-feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--light-mint);
}

.member-feature-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy), #2563eb);
    color: var(--white);
}

.member-feature-icon svg { width: 28px; height: 28px; }

.member-feature-icon.teal {
    background: linear-gradient(135deg, var(--teal), var(--mint));
}

.member-feature-icon.green {
    background: linear-gradient(135deg, var(--mint), #80d0c7);
}

.member-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.member-feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
}


/* ===================================================
   MEMBERSHIP APPLICATION FORM
   =================================================== */
.apply-section {
    padding: 64px 0 72px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.apply-heading {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.apply-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 36px;
    color: var(--text-light);
}

.apply-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.form-section-title svg {
    width: 20px; height: 20px;
    color: var(--teal);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.required {
    color: #e53e3e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.12);
}

.form-group input::placeholder {
    color: #b0bec5;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.92rem;
    font-weight: 500 !important;
    color: var(--text) !important;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--navy);
    width: 16px; height: 16px;
}

.gender-other-input {
    width: 100px !important;
    padding: 6px 10px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-family: var(--font);
}

.form-agreement {
    margin: 24px 0;
    padding: 18px 20px;
    background: var(--pale);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--navy);
    width: 18px; height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label a:hover {
    color: var(--navy);
}

.form-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}

.btn-lg {
    padding: 13px 32px;
    font-size: 1.05rem;
    border-radius: 22px;
}

.form-success {
    text-align: center;
    padding: 32px 20px;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint), #80d0c7);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    color: var(--white);
}

.success-icon svg { width: 36px; height: 36px; }

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.form-success p {
    font-size: 1rem;
    line-height: 1.7;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0 28px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
}

.form-privacy svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--accent-teal);
}

.form-error {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid #f2b8b5;
    border-radius: var(--radius-sm);
    background: #fff5f5;
    color: #a3211d;
    font-weight: 500;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    border: none; display: flex; align-items: center;
    justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transition: all var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--mint); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===================================================
   BYLAWS (學會章程) TYPOGRAPHY
   =================================================== */
.bylaws-main-title {
    text-align: center;
    border: none;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 1.8rem;
    font-weight: 700;
}

.bylaws-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.chapter-title {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 36px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pale);
    font-weight: 600;
}

.clause {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.clause-number {
    min-width: 60px;
    font-weight: 600;
    color: var(--teal);
    flex-shrink: 0;
}

.clause-content {
    flex-grow: 1;
}

.clause-content p {
    margin: 0;
    text-align: justify;
}

.sub-clause {
    padding-left: 60px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-light);
}

.sub-clause .clause-number {
    min-width: 32px;
    font-weight: 500;
    color: var(--text);
}

.sub-clause.no-number {
    padding-left: 92px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1080px) {
    .issues-grid { grid-template-columns: repeat(3, 1fr); }
    .news-research-grid { grid-template-columns: 1fr; }
    .join-layout { flex-direction: column; text-align: center; }
    .join-text { text-align: center; }
    .board-grid { grid-template-columns: repeat(3, 1fr); }
    .board-grid-supervisor { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .nav-links.open {
        display: flex !important; flex-direction: column;
        position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--white); padding: 20px;
        box-shadow: var(--shadow-md); gap: 16px;
    }

    .nav-links.open .dropdown-menu {
        position: static; transform: none; box-shadow: none;
        border: none; padding: 5px 0 5px 15px; margin-top: 5px;
        background: #f9fbfb; display: none;
    }

    .nav-links.open .dropdown.active .dropdown-menu {
        display: flex; opacity: 1; visibility: visible;
    }
    
    .nav-links.open .dropdown.active .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .hero { padding: 112px 0 270px; min-height: auto; }
    .hero-bg { top: auto; bottom: 0; left: 0; width: 100%; height: 230px; }
    .hero-bg::after {
        background: linear-gradient(180deg, #edf7fb 0%, rgba(237,247,251,0.62) 18%, rgba(237,247,251,0) 48%);
    }
    .hero-content { width: 100%; max-width: 620px; padding-right: 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; gap: 10px; }

    .features-card { flex-direction: column; gap: 16px; align-items: flex-start; }
    .feature-divider { display: none; }

    .about-layout { grid-template-columns: 1fr; }
    .about-right { grid-template-columns: repeat(3, 1fr); }

    .issues-grid { grid-template-columns: repeat(2, 1fr); }
    .news-cards-row { grid-template-columns: 1fr; }
    .featured-news-card .news-card-body { padding: 20px; }
    .news-event-facts { grid-template-columns: 1fr; gap: 12px; }

    .footer-grid { grid-template-columns: 1fr; }
    .join-icons { flex-wrap: wrap; justify-content: center; }

    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .board-card-chair { grid-column: 1 / -1; }
    .board-grid-supervisor { grid-template-columns: repeat(2, 1fr); }
    .members-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .apply-form { padding: 24px 20px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero { padding-bottom: 225px; }
    .hero-bg { height: 190px; }
    .logo-icon-wrap { width: 42px; height: 47px; flex-basis: 42px; }
    .logo-title { font-size: 0.98rem; letter-spacing: 0.5px; }
    .logo-subtitle { display: none; }
    .footer-logo .logo-icon-wrap { width: 64px; height: 72px; flex-basis: 64px; }
    .footer-logo .logo-subtitle { display: block; }
    .about-right { grid-template-columns: 1fr; }
    .issues-grid { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: 1fr; }
    .board-grid-supervisor { grid-template-columns: 1fr; }
}


/* ===================================================
   SCROLL REVEAL ANIMATIONS
   =================================================== */
.reveal-init {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}
