/* ==========================================================================
   全站共用變數與重置[cite: 1]
   ========================================================================== */
:root {
    --primary: #B8860B;
    --primary-hover: #9E7309;
    --text-dark: #2C2C2C;
    --text-light: #555555;
    --bg-cream: #FCFAF5;
    --white: #FFFFFF;
    --border-color: #EAEAEA;
    --nav-height: 80px;
    
    --content-width: 1180px;
    --reading-width: 900px;
    --page-gutter: clamp(15px, 3vw, 30px);
}

html { 
    scroll-behavior: smooth; 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    font-family: 'Noto Sans TC', "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 強制所有圖片自動縮放，絕不撐破手機螢幕[cite: 1] */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin-top: 0;
    margin-bottom: 12px;
}
p:last-child, ul:last-child { margin-bottom: 0; }
a { text-decoration: none; }

.bg-cream { background-color: var(--bg-cream); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--text-light); }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.highlight-gold { color: var(--primary); font-weight: 700; }
.highlight-red { color: #D32F2F; font-weight: 500; }
.highlight-blue { color: #1976D2; font-weight: 500; }
.divider { margin: 30px 0; border: 0; border-top: 1px solid var(--border-color); }
.light-hr { margin: 15px 0; border: 0; border-top: 1px dashed #DDD; }

.container { 
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto; 
    padding-left: var(--page-gutter); 
    padding-right: var(--page-gutter); 
}

/* ==========================================================================
   導覽列 Navigation (優化：放大 Logo 與協會名稱)[cite: 1]
   ========================================================================== */
.navbar { 
    background: var(--white); 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
    position: sticky; 
    top: 0; 
    z-index: 999; 
    width: 100%;
    max-width: 100%;
}
.nav-toggle { display: none; }
.nav-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 85px; 
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10px var(--page-gutter);
}
.logo-link { display: flex; align-items: center; gap: 14px; }
img.logo { height: 50px; width: auto; object-fit: contain; } 
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.assoc-name-zh { font-size: 20px; font-weight: 700; color: var(--text-dark); line-height: 1.2; margin:0; letter-spacing: 0.5px;} 
.assoc-name-en { font-size: 11px; font-weight: 500; color: var(--primary); letter-spacing: 0.8px; margin-top: 3px; margin-bottom: 0; } 

.nav-links { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    list-style: none; 
    background: var(--white);
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter) 10px;
    gap: clamp(15px, 2vw, 30px); 
}
.nav-links li { position: relative; padding: 5px 0; }
.nav-links li a { color: var(--text-dark); font-weight: 600; font-size: 15px; transition: color 0.3s; display: block; white-space: nowrap; margin:0; }
.nav-links li a:hover { color: var(--primary); }

.dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: var(--white); min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 6px; padding: 5px 0; z-index: 100; list-style: none; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li { padding: 0; margin:0;}
.dropdown-content li a { padding: 10px 15px; font-weight: 500; font-size: 14px; text-align: center; }
.dropdown-content li a:hover { background-color: var(--bg-cream); }
.nav-toggle-label { display: none; }

/* Buttons[cite: 1] */
.btn-primary, .btn-secondary { padding: 10px 24px; border-radius: 4px; font-weight: 600; font-size: 15px; transition: all 0.3s ease; display: inline-block; text-align: center; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: var(--white) !important; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(184,134,11,0.2); }
.btn-secondary { background-color: transparent; border: 1px solid #CCC; color: var(--text-dark); }
.btn-secondary:hover:not([disabled]) { background-color: #F5F5F5; border-color: #999; }
.btn-large { padding: 12px 28px; font-size: 15px; }

/* ==========================================================================
   首頁：主視覺與橫幅 Hero & Banner[cite: 1]
   ========================================================================== */
.hero { position: relative; width: 100%; overflow: hidden; height: auto; min-height: 400px; background-image: url('images/hero.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(252, 250, 245, 1) 0%, rgba(252, 250, 245, 0.95) 45%, rgba(252, 250, 245, 0) 100%); }
.hero-content { position: relative; z-index: 1; color: var(--text-dark); max-width: 650px; }
.hero-content h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.25; font-weight: 700; color: #3e1b0a; margin-bottom:15px; }
.hero-content p { font-size: 16px; line-height: 1.7; color: #2a2a2a; font-weight: 500; margin-bottom:15px;}
.hero-content .hero-highlight { color: #8B6508; font-size: 17px; font-weight: 700; margin-bottom: 25px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin:0;}

.banner { position: relative; width: 100%; overflow: hidden; height: auto; min-height: 300px; background-image: url('images/banner.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(252, 250, 245, 1) 0%, rgba(252, 250, 245, 0.95) 45%, rgba(252, 250, 245, 0) 100%); }
.banner-content { position: relative; z-index: 1; max-width: 600px; }
.banner-content h2 { font-size: clamp(28px, 4vw, 32px); color: #3e1b0a; line-height: 1.3; margin-bottom:15px;}
.banner-content p { font-size: 16px; line-height: 1.7; color: #2a2a2a; font-weight: 500; margin-bottom:10px;}

.page-header { background-color: var(--bg-cream); padding: clamp(30px, 4vw, 50px) 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-header h1 { font-size: clamp(26px, 4vw, 36px); color: var(--text-dark); line-height: 1.3; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: var(--text-light); max-width: 800px; margin: 0 auto; line-height: 1.6; }

.section-title { font-size: clamp(26px, 4vw, 32px); font-weight: 700; color: #3e1b0a; margin: 0 auto 20px; line-height: 1.3;}

/* Stats[cite: 1] */
.stats { text-align: center; padding: clamp(30px, 4vw, 40px) 0 clamp(10px, 2vw, 20px); }
.stats h2 { margin-bottom: 10px; }
.stats-subtitle { margin: 0 auto 20px; max-width: 850px; font-size: 16px; color: var(--text-light); line-height: 1.7;}
.stats-grid { display: flex; justify-content: center; gap: clamp(20px, 4vw, 40px); width: 100%; background: var(--white); padding: clamp(20px, 3vw, 30px); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); flex-wrap: wrap; margin-bottom:0;}
.stat-item h3 { font-size: clamp(32px, 5vw, 42px); color: var(--primary); margin: 0 0 5px 0; line-height: 1; }
.stat-item p { font-size: 15px; font-weight: 600; margin: 0; color: #2C2C2C; }

/* Projects[cite: 1] */
.inner-section { padding: clamp(20px, 4vw, 40px) 0; }
#home-projects { padding-top: 15px; } 

.projects { display: flex; justify-content: center; gap: clamp(15px, 2vw, 25px); width: 100%; margin: 0 auto; }
#home-projects .projects { width: 100%; }
.projects-list { display: flex; flex-direction: column; gap: 30px; }
.project-card { background: var(--white); width: calc((100% - 50px) / 3); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.06); position: relative; display: flex; flex-direction: column; }
.project-detail-card { display: flex; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); align-items: stretch; min-height: 320px; }
.project-detail-card.reverse { flex-direction: row-reverse; }
.proj-img-wrap { flex: 1; position: relative; min-height: 250px; }
.proj-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.proj-badge { position: absolute; top: 15px; left: 15px; background: var(--primary); color: var(--white); font-weight: bold; font-size: 20px; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.proj-num { position: absolute; top: 10px; left: 10px; color: var(--white); font-weight: bold; font-size: 18px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); z-index: 2; }
.project-card img { width: 100%; height: 180px; object-fit: cover; margin:0;}
.proj-text-wrap { flex: 1.2; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.proj-text-wrap h2 { font-size: 24px; margin-bottom: 10px; color: #3e1b0a;}
.proj-text-wrap h4 { font-size: 16px; margin-bottom: 15px; line-height: 1.5; color: #555;}
.proj-text-wrap p { color: var(--text-light); font-size: 16px; margin-bottom: 15px; text-align: justify; line-height: 1.7;}
.project-info { padding: 30px 20px 20px; text-align: left; position: relative; flex-grow: 1; display: flex; flex-direction: column; }
.proj-icon { width: 45px; height: 45px; background: var(--white); border-radius: 50%; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); }
.project-info h3 { font-size: 20px; margin: 0 0 10px 0; color: var(--text-dark); font-weight: 700; text-align: center; }
.link-more { display: inline-block; margin-top: auto; color: var(--primary); font-weight: 700; font-size: 14px; text-align: center; }

/* ==========================================================================
   內頁文字與元件排版 Text Content (保留原本段落間距)[cite: 1]
   ========================================================================== */
.text-content img, .post-body img, .record-body img, figure img, .wp-block-image img, .myanmar-image img { max-width: 100% !important; height: auto !important; box-sizing: border-box; display: block; }
.text-content { max-width: var(--reading-width); margin: 0 auto; }
.text-content h2 { font-size: 22px; margin: 30px 0 15px; border-bottom: 2px solid var(--bg-cream); padding-bottom: 8px; color: #3e1b0a; }
.text-content h3 { font-size: 20px; margin: 20px 0 10px; color: var(--primary); line-height: 1.4; }
.text-content p, .text-content ul { font-size: 16px; color: var(--text-light); margin-bottom: 15px; text-align: justify; line-height: 1.7; }
.feature-visual { max-width: var(--reading-width); margin: 0 auto 30px; overflow: hidden; border-radius: 10px; background: #f5f1e8; box-shadow: 0 8px 20px rgba(62, 27, 10, .1); }
.feature-visual img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin:0;}
.myanmar-section { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-bottom: 30px; padding: 0; }
.myanmar-section.reverse { flex-direction: row-reverse; }
.myanmar-text { flex: 1.2; }
.myanmar-text h2 { font-size: 24px; color: #3e1b0a; border-left: 4px solid var(--primary); padding-left: 15px; margin-bottom: 12px; line-height: 1.3; }
.myanmar-text p { font-size: 16px; color: var(--text-light); line-height: 1.7; text-align: justify; margin-bottom: 12px; }
.myanmar-image { flex: 1; display: flex; flex-direction: column; justify-content: center; background: #f7f3eb; border-radius: 10px; overflow: hidden; gap: 10px; }
.myanmar-image img { display: block; width: 100%; max-height: 380px; object-fit: contain; background: #f7f3eb; box-shadow: none; margin:0;}

/* Feed & Records[cite: 1] */
.post-feed, .record-feed { display: flex; flex-direction: column; gap: 20px; max-width: 950px; margin: 0 auto; }
.post-card { display: flex; background: var(--white); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; align-items: stretch; border-top: 4px solid var(--primary); }
.post-thumbnail { flex: 0 0 320px; display: flex; align-items: center; justify-content: center; background: #F9F9F9; padding: 15px; }
.pure-contain-img { max-width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 6px; }
.post-body { flex: 1; padding: clamp(20px, 4vw, 30px); display: flex; flex-direction: column; justify-content: center; }
.entry-date, .record-date { display: inline-block; color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.entry-title { font-size: 20px; color: #3e1b0a; margin: 0 0 10px 0; line-height: 1.3; }
.entry-content blockquote { margin: 10px 0; padding: 10px 15px; background: #FFF9ED; border-left: 4px solid var(--primary); font-style: italic; color: #444; }
.record-card { background: var(--white); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; border-left: 6px solid var(--primary); padding: clamp(20px, 4vw, 30px); }
.record-header { margin-bottom: 15px; }
.record-title { font-size: 22px; color: #3e1b0a; margin: 5px 0 0 0; line-height: 1.3; }
.record-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.wp-block-image { margin: 0; }
.wp-block-image img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin:0;}

/* IBEC Cards & Finance[cite: 1] */
.capability-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
.capability-card { background: var(--white); padding: 25px 20px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary); text-align: center; }
.cap-icon { font-size: 36px; margin-bottom: 15px; }
.capability-card h3 { color: var(--text-dark); margin: 0 0 10px 0; font-size: 18px; }
.capability-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; margin: 0;}
.awards-box { background: #FFF9ED; border-left: 5px solid var(--primary); padding: 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.finance-card { background: var(--white); padding: clamp(20px, 3vw, 30px); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.card-title { margin-top: 0; font-size: 20px; color: var(--primary); border-bottom: 2px solid var(--bg-cream); padding-bottom: 10px; margin-bottom: 15px; }
.finance-list { padding-left: 20px; margin: 0; }
.finance-list li { margin-bottom: 10px; font-size: 15px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 500px; }
.fin-table th, .fin-table td { padding: 10px; border-bottom: 1px solid var(--border-color); font-size:14px;}
.fin-table th { background-color: var(--bg-cream); color: var(--text-dark); font-weight: 600; text-align: left; }
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; max-width: 950px; margin: 0 auto; }
.donate-box { background: var(--white); border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden;}
.donate-header { background: var(--bg-cream); padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.donate-header h3 { margin: 0; font-size: 20px; color: var(--primary); }
.donate-body { padding: clamp(20px, 4vw, 30px); flex-grow: 1; display: flex; flex-direction: column; }
.bank-info-box { background: #F9F9F9; border: 1px solid #EEE; padding: 20px; border-radius: 6px; margin-bottom: 20px; }
.cta-box { background: var(--bg-cream); padding: clamp(20px, 4vw, 40px); border-radius: 10px; }

/* 其他結構與內頁[cite: 1] */
.certificate-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 42px; }
.certificate-gallery img { display: block; width: 100%; height: 260px; padding: 10px; object-fit: contain; background: #fff; border: 1px solid #eee5d8; border-radius: 10px; box-shadow: 0 4px 16px rgba(62, 27, 10, .08); }
.content-split { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: clamp(28px, 5vw, 56px); align-items: center; margin: 42px 0; }
.content-split-image { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-split-image img { width: 100%; min-height: 220px; height: 100%; border-radius: 10px; object-fit: cover; box-shadow: 0 5px 18px rgba(62, 27, 10, .1); }
.content-split-image img:only-child { grid-column: 1 / -1; }
.qa-container { max-width: var(--reading-width); margin: 0 auto; display: grid; gap: 16px; }
.qa-card { overflow: hidden; background: #fff; border: 1px solid #eee7dd; border-radius: 10px; box-shadow: 0 4px 14px rgba(62, 27, 10, .05); }
.qa-q { margin: 0; padding: 18px 22px; color: #3e1b0a; font-size: 18px; line-height: 1.5; background: #fffaf1; border-left: 4px solid var(--primary); }
.qa-a { padding: 18px 26px 22px; }
.qa-a p, .qa-a li { color: var(--text-light); line-height: 1.85; }
.partner-intro { max-width: 960px; margin: 0 auto; }
.partner-section { padding: 42px 0; border-top: 1px solid #e9e1d6; }
.partner-section:first-child { padding-top: 0; border-top: 0; }
.partner-section h2 { margin: 0 0 18px; color: #3e1b0a; font-size: clamp(25px, 3vw, 34px); line-height: 1.4; }
.partner-section h3 { color: var(--primary); font-size: 20px; line-height: 1.5; }
.partner-section p, .partner-section li { font-size: 16px; color: var(--text-light); line-height: 1.9; }
.partner-overview, .partner-profile { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(280px, .84fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.partner-photo { margin: 0; overflow: hidden; border-radius: 14px; background: #f6f0e7; box-shadow: 0 12px 28px rgba(62, 27, 10, .12); }
.partner-photo img { display: block; width: 100%; height: 100%; min-height: 320px; max-height: 470px; object-fit: cover; }
.partner-photo--portrait img { object-fit: contain; background: #a76a30; }
.partner-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.partner-capability { padding: 28px 24px; background: #fff; border-top: 4px solid var(--primary); border-radius: 10px; box-shadow: 0 5px 18px rgba(62, 27, 10, .07); }
.partner-capability .number { display: block; margin-bottom: 12px; color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.partner-capability h3 { margin: 0 0 12px; color: #3e1b0a; font-size: 20px; }
.partner-capability p { margin: 0; font-size: 15px; }
.partner-awards { margin: 22px 0 0; padding: 24px 28px; background: #fff9ed; border-left: 5px solid var(--primary); border-radius: 0 10px 10px 0; }
.partner-awards ul { margin: 0; padding-left: 20px; }
.trust-panel { padding: clamp(28px, 5vw, 48px); background: #3e1b0a; color: #fff; border-radius: 14px; }
.trust-panel h2, .trust-panel p { color: #fff; }
.partner-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.partner-flow-step { position: relative; padding: 20px 16px; background: #fff; border-radius: 10px; color: #3e1b0a; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.11); }
.partner-flow-step strong { display: block; margin-bottom: 8px; color: var(--primary); font-size: 15px; }
.partner-flow-step span { font-size: 14px; line-height: 1.45; }
.partner-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.partner-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 15px rgba(62, 27, 10, .1); }
.home-collaboration { padding: clamp(30px, 4vw, 50px) 0; background: #fff; }
.collaboration-panel, .about-collaboration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr); gap: clamp(25px, 5vw, 50px); align-items: center; }
.collaboration-copy h2, .about-collaboration h2 { margin: 0 0 15px; color: #3e1b0a; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.25; }
.collaboration-copy p:not(.eyebrow), .about-collaboration p:not(.eyebrow) { margin: 0 0 20px; color: var(--text-light); font-size: 16px; line-height: 1.7; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.collaboration-image, .about-collaboration figure { margin: 0; border-radius: 10px; background: #f6f0e7; overflow:hidden;}
.collaboration-image img, .about-collaboration img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin:0;}
.about-collaboration { margin: 30px 0; padding: clamp(20px, 4vw, 40px); background: #fff9ed; border-radius: 10px; }

/* 認識協會專屬排版清理[cite: 1] */
.about-spacer { margin: 50px 0; }
.about-scale-title { border: none; margin-top: 50px; }
.about-stats { box-shadow: none; padding: 20px 0; background: transparent; }
.about-stat-item { background: var(--bg-cream); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.about-flex-row { display: flex; gap: 40px; flex-wrap: wrap; }
.about-flex-col { flex: 1; min-width: 300px; }
.about-flex-col h3 { margin-top: 0; }
.about-awards { margin-top: 50px; }
.about-awards h3 { color: var(--primary); margin-top: 0; }
.about-awards ul { margin-bottom: 0; }

/* ==========================================================================
   頁尾 Footer[cite: 1]
   ========================================================================== */
footer { padding: 40px var(--page-gutter) 20px; background: var(--bg-cream); color: var(--text-light); font-size: 14px; display: block; }
footer .container { padding-left: 0; padding-right: 0; } 
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; width: 100%; max-width: var(--content-width); margin: 0 auto 20px; border-bottom: 1px solid #DCDCDC; padding-bottom: 20px; }
.footer-brand { flex: 1; min-width: 250px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; list-style: none !important; margin: 0; padding: 0; }
.footer-links li { margin: 0; padding: 0; }
.footer-links a { color: var(--text-dark); font-weight: 500; font-size: 14px; }
.social-icons { display: flex; gap: 10px; align-items: center; }
.social-icons a img { height: 38px !important; width: auto !important; }
.footer-bottom { text-align: center; width: 100%; max-width: var(--content-width); margin: 0 auto; color: #777; line-height: 1.6; }
.footer-bottom p {margin-bottom:5px;}

/* ==========================================================================
   響應式設計 Mobile Responsive[cite: 1]
   ========================================================================== */
@media (max-width: 900px) {
    .navbar { padding: 0; flex-direction: column; align-items: stretch; }
    .nav-header { height: 75px; padding: 10px var(--page-gutter); display: flex; width: 100%; justify-content: space-between; background: var(--white); z-index: 101; position: relative; }
    img.logo { height: 46px; }
    .nav-toggle-label { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; cursor: pointer; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; background: var(--primary); height: 3px; width: 22px; border-radius: 2px; position: relative; transition: 0.3s; }
    .nav-toggle-label span::before, .nav-toggle-label span::after { content: ''; position: absolute; }
    .nav-toggle-label span::before { bottom: 7px; }
    .nav-toggle-label span::after { top: 7px; }
    .nav-toggle:checked ~ .nav-header .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-header .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
    .nav-toggle:checked ~ .nav-header .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
    .nav-links { display: none; width: 100%; max-width: none; flex-direction: column; gap: 0; padding: 0; background: #F9F9F9; border-top: 1px solid var(--border-color); margin: 0; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links li { width: 100%; padding: 0; border-bottom: 1px solid #EAEAEA; }
    .nav-links li a { padding: 12px 5%; font-size: 15px; white-space: normal; }
    .dropdown-content { display: block; position: static; box-shadow: none; transform: none; background: #F0F0F0; border-radius: 0; padding: 0; }
    .dropdown-content li a { padding: 10px 5% 10px 10%; font-size: 14px; color: #555; text-align: left; border-bottom: 1px dashed #DDD;}
    
    .myanmar-section, .myanmar-section.reverse { flex-direction: column; gap: 15px; margin-bottom:20px; }
    .myanmar-text { width: 100%; }
    .myanmar-image { width: 100%; flex-direction: row; overflow-x: auto; }
    .myanmar-image img { flex: 1; min-width: 200px; max-height: none; }
    .post-card { flex-direction: column; }
    .post-thumbnail { flex: none; height: auto; min-height: 200px; padding:10px; }
    .record-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wp-block-image img { height: 120px; }
    .projects { flex-direction: column; gap: 15px; }
    .project-card { width: 100%; }
    .project-detail-card, .project-detail-card.reverse { flex-direction: column; }
    .proj-img-wrap { min-height: 200px; }
    .finance-grid, .donate-grid { grid-template-columns: 1fr; gap: 15px;}
    
    .content-split { grid-template-columns: 1fr; gap:15px; }
    .content-split-image { max-width: 680px; width: 100%; }
    .partner-overview, .partner-profile { grid-template-columns: 1fr; gap: 20px; }
    .partner-capabilities { grid-template-columns: 1fr; gap: 15px; }
    .partner-flow { grid-template-columns: repeat(2, 1fr); }
    .collaboration-panel, .about-collaboration { grid-template-columns: 1fr; gap: 20px;}
}

@media (max-width: 560px) {
    /* 手機版專業閱讀邊界：避免內頁文字貼近螢幕邊緣 */
    :root { --page-gutter: clamp(24px, 7vw, 30px); }
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }


    .hero-content h1 br,
    .hero-content p br,
    .stats-subtitle br,
    .banner-content h2 br,
    .banner-content p br,
    .collaboration-copy h2 br {
        display: none;
    }

    /* ----------------------------------------------------
       Hero & Banner 手機版：圖片與文字完全上下拆分
       ---------------------------------------------------- */
    .hero, .banner { 
        min-height: 0; 
        padding: 0; 
        background: var(--bg-cream) !important; /* 底色統一延伸 */
        display: flex;
        flex-direction: column;
    }
    .hero::before, .banner::before {
        display: none; 
    }
    
    .hero::after, .banner::after {
        content: '';
        display: block;
        width: 100%;
        height: 280px; /* 增加高度讓主視覺圖片更飽滿 */
        background-size: cover;
        background-position: center;
        order: -1; 
    }
    .hero::after { background-image: url('images/hero.jpg'); }
    .banner::after { background-image: url('images/banner.jpg'); }

    /* 文字區塊：增加舒適的內距與行距，文字完全置中 */
    .hero > .container, .banner > .container {
        padding: 40px var(--page-gutter) 50px; /* 增加下方呼吸空間 */
        background-color: var(--bg-cream);
    }
    
    .hero-content, .banner-content {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.4;
    }
    .hero-content p {
        font-size: 16px;
        line-height: 1.9;
        letter-spacing: 0.5px;
        color: var(--text-dark);
        margin-bottom: 25px;
        text-align: center; 
    }
    .hero-content .hero-highlight {
        font-size: 18px;
        margin-bottom: 30px;
        text-align: center;
        display: block;
    }
    .hero-buttons {
        justify-content: center;
    }

    /* 首頁與內文排版：套用寬裕的行距與留白，置中排版呈現專業感 */
    .stats h2, .section-title {
        text-align: center !important;
        font-size: 28px;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    .stats-subtitle {
        text-align: center !important;
        line-height: 1.9 !important;
        letter-spacing: 0.5px;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    /* 數據區塊垂直排列 */
    .stats-grid {
        flex-direction: column;
        gap: 30px;
        padding: 40px 25px;
    }
    .stat-item {
        width: 100%;
        text-align: center;
    }
    .stat-item h3 {
        font-size: 44px;
        margin-bottom: 10px;
    }

    /* 內頁內容保護不溢出 */
    .text-content img, figure img, .partner-photo img {
        max-width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
    }
    .text-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .text-content p, .text-content ul {
        line-height: 1.9 !important;
        letter-spacing: 0.4px;
        margin-bottom: 25px;
    }

    /* Header 縮放 */
    .assoc-name-zh { font-size: 17px; }
    .assoc-name-en { font-size: 9px; }
    img.logo { height: 42px; }
    .nav-toggle-label { width: 40px; height: 40px; }
    .nav-toggle-label span::before { bottom: 9px; }
    .nav-toggle-label span::after { top: 9px; }
    
    .page-header { padding: 40px 0; }
    .stats { padding: 35px 0 20px; }
    .inner-section { padding: 40px 0 50px; }
    #home-projects { padding-top: 30px; }
    
    .project-info { padding: 40px 20px 30px; }
    .proj-icon { width: 56px; height: 56px; top: -28px; font-size: 24px;}
    
    .post-body, .record-card, .finance-card, .donate-body, .bank-info-box, .capability-card, .cta-box, .about-collaboration { 
        padding: 35px 25px; 
    }
    
    .projects { gap: 20px; }
    .project-card img { height: 180px; }
    .home-collaboration { padding: 35px 0; }
    .feature-visual { margin-bottom: 25px; border-radius: 8px; }
    .feature-visual img { aspect-ratio: 4 / 3; }
    .record-gallery { grid-template-columns: 1fr; }
    .wp-block-image img { height: 200px; }

    /* 其他元件行距與間距處理 */
    .certificate-gallery { grid-template-columns: 1fr; }
    .certificate-gallery img { height: 300px; }
    .content-split-image { grid-template-columns: 1fr; }
    .content-split-image img { min-height: 0; height: 260px; }
    .qa-q { padding: 20px 22px; font-size: 18px; line-height: 1.5; }
    .qa-a { padding: 20px 22px 25px; }
    .qa-a p, .qa-a li { line-height: 1.9; }
    .partner-section { padding: 40px 0; }
    .partner-photo img { min-height: 0; max-height: 360px !important; }
    .partner-flow { grid-template-columns: 1fr; gap: 15px; }
    .partner-gallery { grid-template-columns: 1fr; gap: 15px; }
    .partner-gallery img { height: 240px; }
    
    .content-split { gap: 30px; margin: 40px 0; }
    .content-split-image img { min-height: 0; height: auto; }
    .light-hr.about-spacer { margin: 30px 0 !important; }
    .about-scale-title { margin-top: 40px; }
    .about-stats { padding: 15px 0 !important; gap: 20px !important; }
    .about-stat-item { padding: 25px !important; }
    .about-flex-row { gap: 30px !important; }
    .about-flex-col { min-width: 100% !important; }
    .about-awards { margin-top: 40px; }
    .cta-box { padding: 40px 25px !important; margin-top: 40px !important; }

    /* Footer 排版留白 */
    footer { padding: 40px var(--page-gutter) 25px; }
    .footer-brand { min-width: 0; }
    .footer-top { gap: 20px; padding-bottom: 20px; margin-bottom: 20px; }
}

/* ==========================================================================
   HOMEPAGE ONLY — Hero / Banner
   Do not alter shared .hero/.banner rules used by inner pages.
   ========================================================================== */

.hero-home,
.banner-home {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-home > .container,
.banner-home > .container {
    width: 100%;
    max-width: var(--content-width);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Desktop: retain the original visual treatment, but make the boundary
   explicit so no section can extend beyond the viewport. */
@media (min-width: 561px) {
    .hero-home,
    .banner-home {
        position: relative;
        left: auto;
        right: auto;
        transform: none;
    }

    .hero-home .hero-content,
    .banner-home .banner-content {
        box-sizing: border-box;
        max-width: 650px;
    }

    .banner-home .banner-content {
        max-width: 600px;
    }
}

/* Mobile homepage only:
   image first, text second; no extra padding reserved for an image. */
@media (max-width: 560px) {
    .hero-home,
    .banner-home {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0 !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: var(--bg-cream) !important;
    }

    .hero-home::before,
    .banner-home::before {
        display: none !important;
    }

    .hero-home::after,
    .banner-home::after {
        content: "";
        display: block;
        order: -1;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: clamp(230px, 62vw, 300px);
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-home::after {
        background-image: url('images/hero.jpg');
    }

    .banner-home::after {
        background-image: url('images/banner.jpg');
    }

    .hero-home > .container,
    .banner-home > .container {
        order: 1;
        width: 100%;
        max-width: var(--content-width);
        min-width: 0;
        margin: 0;
        padding: 32px var(--page-gutter) 34px !important;
        box-sizing: border-box;
        background: var(--bg-cream);
    }

    .hero-home .hero-content,
    .banner-home .banner-content {
        width: 100%;
        max-width: 680px;
        min-width: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .hero-home .hero-content h1 {
        font-size: clamp(29px, 7.4vw, 34px);
        line-height: 1.45;
        margin-bottom: 20px;
        text-align: left;
    }

    .hero-home .hero-content p {
        font-size: 16px;
        line-height: 1.9;
        letter-spacing: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    .hero-home .hero-content .hero-highlight {
        font-size: 17px;
        line-height: 1.85;
        margin: 24px 0 28px;
        text-align: left;
    }

    .hero-home .hero-buttons {
        justify-content: flex-start;
        gap: 12px;
    }

    .banner-home .banner-content h2 {
        font-size: clamp(27px, 6.8vw, 34px);
        line-height: 1.45;
        margin-bottom: 18px;
        text-align: left;
    }

    .banner-home .banner-content p {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 18px;
        text-align: left;
    }
}

/* Very small phones: buttons become a comfortable vertical stack. */
@media (max-width: 420px) {
    .hero-home .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-home .hero-buttons a {
        width: 100%;
    }
}


/* MOBILE-TABLE-FIX-BEGIN */
@media (max-width: 700px) {
  /* Comfortable reading gutter on all inner pages */
  .container {
    width: auto !important;
    max-width: none !important;
    margin-left: 22px !important;
    margin-right: 22px !important;
  }

  /* Keep the representative-place table inside the screen.
     It scales to the available width instead of creating horizontal scrolling. */
  .tw-table-wrap {
    width: 100% !important;
    overflow-x: visible !important;
    box-sizing: border-box !important;
  }

  .tw-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }

  .tw-table th,
  .tw-table td {
    box-sizing: border-box !important;
    padding: 11px 8px !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .tw-table th:nth-child(1),
  .tw-table td:nth-child(1) { width: 23%; }
  .tw-table th:nth-child(2),
  .tw-table td:nth-child(2) { width: 31%; }
  .tw-table th:nth-child(3),
  .tw-table td:nth-child(3) { width: 16%; }
  .tw-table th:nth-child(4),
  .tw-table td:nth-child(4) { width: 30%; }

  .tw-table a {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}
/* MOBILE-TABLE-FIX-END */



/* ==========================================================================
   MOBILE INNER PAGE COMPACT FIX
   針對手機/窄視窗內頁：縮小左右邊界與過大的上下留白
   ========================================================================== */
@media (max-width: 700px) {
    :root {
        --page-gutter: clamp(14px, 4vw, 24px);
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .page-header {
        padding: 24px 0 !important;
    }

    .inner-section {
        padding: 22px 0 28px !important;
    }

    .text-content {
        max-width: none !important;
        width: 100% !important;
    }

    .text-content p,
    .text-content ul {
        margin-bottom: 16px !important;
    }

    .about-spacer {
        margin: 14px 0 !important;
    }

    .about-scale-title {
        margin-top: 20px !important;
    }

    .content-split {
        gap: 18px !important;
        margin: 24px 0 !important;
    }

    .partner-section {
        padding: 24px 0 !important;
    }

    .about-collaboration {
        margin: 20px 0 !important;
        padding: 20px clamp(16px, 4vw, 24px) !important;
    }

    .awards-box {
        margin-top: 20px !important;
    }

    .cta-box {
        margin-top: 24px !important;
    }

    /* HTML 內聯 margin 也必須在手機版被壓縮 */
    hr.light-hr {
        margin-top: 18px !important;
        margin-bottom: 18px !important;
    }

    .finance-card {
        padding: 20px clamp(16px, 4vw, 24px) !important;
    }

    .finance-grid {
        gap: 14px !important;
    }

    .finance-grid + .finance-card,
    .finance-card.mt-30 {
        margin-top: 18px !important;
    }

    .text-center[style*="margin-bottom"] {
        margin-bottom: 20px !important;
    }

    .stats-grid {
        padding: 12px 0 !important;
        gap: 14px !important;
    }

    .stat-item {
        padding: 20px !important;
    }
}


/* ==========================================================================
   FINANCE PAGE — RESPONSIVE MOBILE LAYOUT
   ========================================================================== */
@media (max-width: 700px) {

    /* 動態左右邊界：依螢幕寬度調整，不固定單一 px */
    :root {
        --page-gutter: clamp(14px, 4vw, 24px);
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    /* 財務頁內容區不要再留下過大的上下空白 */
    .finance-intro {
        margin-bottom: 20px !important;
    }

    .finance-grid {
        gap: 16px !important;
    }

    .finance-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 20px clamp(16px, 4vw, 24px) !important;
    }

    .finance-card.mt-30 {
        margin-top: 18px !important;
    }

    /* 表格容器：只允許表格使用卡片內可用寬度 */
    .finance-card .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 所有財務表格取消原本 500px min-width */
    .finance-card .fin-table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        box-sizing: border-box !important;
        font-size: clamp(11px, 2.9vw, 13px) !important;
    }

    .finance-card .fin-table th,
    .finance-card .fin-table td {
        min-width: 0 !important;
        padding: 9px 5px !important;
        font-size: inherit !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }

    /* 第一張：收支表 3 欄 */
    .finance-summary-table th:nth-child(1),
    .finance-summary-table td:nth-child(1) {
        width: 34% !important;
        text-align: left;
    }

    .finance-summary-table th:nth-child(2),
    .finance-summary-table td:nth-child(2) {
        width: 39% !important;
    }

    .finance-summary-table th:nth-child(3),
    .finance-summary-table td:nth-child(3) {
        width: 27% !important;
    }

    /* 第二張：專案明細 4 欄 */
    .project-detail-table th:nth-child(1),
    .project-detail-table td:nth-child(1) {
        width: 14% !important;
    }

    .project-detail-table th:nth-child(2),
    .project-detail-table td:nth-child(2) {
        width: 28% !important;
    }

    .project-detail-table th:nth-child(3),
    .project-detail-table td:nth-child(3) {
        width: 34% !important;
    }

    .project-detail-table th:nth-child(4),
    .project-detail-table td:nth-child(4) {
        width: 24% !important;
    }

    .project-detail-table th span {
        font-size: 10px !important;
    }

    /* 財務頁最後的說明文字 */
    .finance-card + .text-center {
        margin-top: 18px !important;
    }
}

/* 很窄的手機：稍微縮小表格字級，但不改左右邊界邏輯 */
@media (max-width: 380px) {
    .finance-card .fin-table {
        font-size: 11px !important;
    }

    .finance-card .fin-table th,
    .finance-card .fin-table td {
        padding: 8px 4px !important;
        line-height: 1.45 !important;
    }

    .project-detail-table th span {
        font-size: 9px !important;
    }
}


/* ==========================================================================
   FINAL MOBILE OVERRIDE — FINANCE
   ========================================================================== */
@media screen and (max-width: 700px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .inner-section.bg-cream > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: clamp(14px, 4vw, 24px) !important;
        padding-right: clamp(14px, 4vw, 24px) !important;
        margin: 0 !important;
    }

    .finance-grid,
    .finance-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .finance-card {
        overflow: hidden !important;
    }

    .finance-card .table-responsive {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .finance-card table.fin-table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    .finance-card table.fin-table tr {
        width: 100% !important;
    }

    .finance-card table.fin-table th,
    .finance-card table.fin-table td {
        max-width: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
        word-break: break-all !important;
    }

    /* 第一張表：確保第三欄一定留在螢幕內 */
    .finance-summary-table th:nth-child(1),
    .finance-summary-table td:nth-child(1) { width: 32% !important; }

    .finance-summary-table th:nth-child(2),
    .finance-summary-table td:nth-child(2) { width: 40% !important; }

    .finance-summary-table th:nth-child(3),
    .finance-summary-table td:nth-child(3) { width: 28% !important; }

    /* 第二張表：長標題強制換行 */
    .project-detail-table th:nth-child(1),
    .project-detail-table td:nth-child(1) { width: 14% !important; }

    .project-detail-table th:nth-child(2),
    .project-detail-table td:nth-child(2) { width: 27% !important; }

    .project-detail-table th:nth-child(3),
    .project-detail-table td:nth-child(3) { width: 35% !important; }

    .project-detail-table th:nth-child(4),
    .project-detail-table td:nth-child(4) { width: 24% !important; }
}
