/* ==========================================================================
   ???用變數??置[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: none !important; position: static; box-shadow: none; transform: none; background: #F0F0F0; border-radius: 0; padding: 0; }
    .dropdown-content.show { display: block !important; }
    .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; }
}

/* Styles from about.html */
/* ---- ??專用補???：?資具供?流???---- */
        .req-flow {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin: 24px 0;
        }
        .req-flow-card {
            flex: 1 1 160px;
            max-width: 220px;
            background: var(--bg-cream, #fff8ec);
            border: 1px solid #f0e0c0;
            border-radius: 12px;
            padding: 22px 16px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }
        .req-flow-card .req-flow-title {
            display: block;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary, #B8860B);
        }
        .req-flow-card .req-flow-sub {
            display: block;
            font-size: 0.8rem;
            color: #5a4a3a;
            margin-top: 6px;
        }
        .req-flow-arrow {
            flex: 0 0 auto;
            font-size: 1.4rem;
            color: var(--primary, #B8860B);
        }
        @media (max-width: 600px) {
            .req-flow { flex-direction: column; gap: 6px; }
            .req-flow-card { flex: 0 1 auto; width: 100%; padding: 14px 16px; }
            .req-flow-arrow { transform: rotate(90deg); margin: -6px 0; font-size: 1.1rem; }
        }

        /* ---- ??專用補???：?案??縮??---- */
        .certificate-gallery img {
            max-width: 200px;
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        }
        @media (max-width: 600px) {
            .certificate-gallery img { max-width: 200px; }
        }


/* Styles from buddhism.html */
.buddhism-bottom-tabs{
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:12px;
    flex-wrap:wrap;
    max-width:980px;
    margin:46px auto 34px;
    padding:0 24px;
    box-sizing:border-box;
}
.buddhism-bottom-tabs a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:190px;
    padding:13px 22px;
    border:1px solid #d8cdbd;
    border-radius:6px;
    background:#fff;
    color:#3e1b0a;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    box-sizing:border-box;
    transition:all .2s ease;
}
.buddhism-bottom-tabs a:hover{
    border-color:var(--primary);
    color:var(--primary);
    background:#fbf5e9;
}
@media(max-width:560px){
    .buddhism-bottom-tabs{
        margin:34px auto 28px;
        padding:0 22px;
        gap:10px;
    }
    .buddhism-bottom-tabs a{
        width:100%;
        min-width:0;
        padding:13px 18px;
    }
}


/* Styles from finance.html */
/* Finance page: single, page-specific responsive layout.
   This block is intentionally after style.css so it is the final authority. */
.finance-page-inner {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    box-sizing: border-box;
}

.finance-page-inner .finance-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-page-inner .finance-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.finance-page-inner .table-responsive {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.finance-page-inner table.fin-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    box-sizing: border-box;
}

@media screen and (max-width: 900px) {
    .finance-page-inner {
        max-width: none;
        width: calc(100% - clamp(28px, 8vw, 48px));
        padding-left: 0;
        padding-right: 0;
    }

    .finance-page-inner .finance-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .finance-page-inner .finance-card {
        padding: clamp(18px, 4vw, 24px);
    }

    .finance-page-inner table.fin-table th,
    .finance-page-inner table.fin-table td {
        min-width: 0;
        max-width: 0;
        padding: 9px 5px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .finance-page-inner .finance-summary-table th:nth-child(1),
    .finance-page-inner .finance-summary-table td:nth-child(1) { width: 32%; }
    .finance-page-inner .finance-summary-table th:nth-child(2),
    .finance-page-inner .finance-summary-table td:nth-child(2) { width: 40%; }
    .finance-page-inner .finance-summary-table th:nth-child(3),
    .finance-page-inner .finance-summary-table td:nth-child(3) { width: 28%; }

    .finance-page-inner .project-detail-table th:nth-child(1),
    .finance-page-inner .project-detail-table td:nth-child(1) { width: 14%; }
    .finance-page-inner .project-detail-table th:nth-child(2),
    .finance-page-inner .project-detail-table td:nth-child(2) { width: 27%; }
    .finance-page-inner .project-detail-table th:nth-child(3),
    .finance-page-inner .project-detail-table td:nth-child(3) { width: 35%; }
    .finance-page-inner .project-detail-table th:nth-child(4),
    .finance-page-inner .project-detail-table td:nth-child(4) { width: 24%; }
}

@media screen and (max-width: 380px) {
    .finance-page-inner {
        width: calc(100% - 32px);
    }

    .finance-page-inner table.fin-table {
        font-size: 11px;
    }
}


/* Styles from ibec.html */
/* ---- ??專用補???：??? style.css 並?，?覆???設? ---- */
        .mid-cta {
            text-align: center;
            padding: 20px 16px;
            margin: 8px 0 4px;
        }
        .mid-cta a {
            font-weight: 600;
            color: var(--primary, #a9762f);
            text-decoration: none;
            border-bottom: 1px solid var(--primary, #a9762f);
            padding-bottom: 2px;
        }
        .honor-timeline {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 20px;
        }
        .honor-item {
            display: flex;
            gap: 16px;
            align-items: flex-start;
            background: #fff8ec;
            border-left: 4px solid #a9762f;
            padding: 14px 18px;
            border-radius: 4px;
        }
        .honor-year {
            flex: 0 0 auto;
            font-weight: 700;
            color: #a9762f;
            min-width: 52px;
        }
        .honor-desc {
            color: #3e1b0a;
        }


/* Styles from projects.html */
/* 護?專???：?????不影?其他???*/
.project-page-new {
    background: var(--bg-cream);
    padding-top: 54px;
    padding-bottom: 72px;
}

.project-intro {
    max-width: 820px;
    margin: 0 auto 54px;
    text-align: center;
}

.project-intro h2 {
    margin: 0 0 18px;
    color: #3e1b0a;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.45;
}

.project-intro p {
    margin: 0;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.9;
}

.project-feature {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    margin: 0 auto 56px;
    max-width: 1160px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(62, 27, 10, .08);
}

.project-feature:nth-of-type(even) {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.project-feature:nth-of-type(even) .project-feature-image {
    order: 2;
}

.project-feature-image {
    min-height: 100%;
    background: #eee8dc;
}

.project-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
}

.project-feature-content {
    padding: 48px 52px 50px;
}

.project-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
}

.project-feature-content h2 {
    margin: 0 0 22px;
    color: #3e1b0a;
    font-size: clamp(27px, 3.5vw, 36px);
    line-height: 1.4;
}

.project-feature-content p,
.project-feature-content li {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.9;
}

.project-feature-content p {
    margin: 0 0 22px;
}

.project-feature-content ol {
    margin: 0 0 24px;
    padding-left: 1.5em;
}

.project-feature-content li {
    margin-bottom: 12px;
    padding-left: 4px;
}

.project-feature-content strong {
    color: #3e1b0a;
}

.merit-note {
    margin: 28px 0 28px;
    padding: 22px 24px;
    background: #fbf5e9;
    border-left: 4px solid var(--primary);
    border-radius: 4px 10px 10px 4px;
}

.merit-note h3 {
    margin: 0 0 10px;
    color: #8B6508;
    font-size: 18px;
    line-height: 1.5;
}

.merit-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

.project-feature .btn-primary {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .project-page-new {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .project-intro {
        margin-bottom: 38px;
        text-align: left;
    }

    .project-intro h2 {
        font-size: 28px;
    }

    .project-intro p {
        font-size: 17px;
        line-height: 2;
    }

    .project-feature,
    .project-feature:nth-of-type(even) {
        display: flex;
        flex-direction: column;
        margin-bottom: 36px;
        border-radius: 12px;
    }

    .project-feature:nth-of-type(even) .project-feature-image {
        order: 0;
    }

    .project-feature-image {
        width: 100%;
        min-height: 0;
    }

    .project-feature-image img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 380px;
        object-fit: cover;
    }

    .project-feature-content {
        padding: 30px 30px 34px;
    }

    .project-kicker {
        font-size: 13px;
    }

    .project-feature-content h2 {
        margin-bottom: 18px;
        font-size: 27px;
        line-height: 1.5;
    }

    .project-feature-content p,
    .project-feature-content li {
        font-size: 17px;
        line-height: 2.05;
    }

    .project-feature-content p {
        margin-bottom: 24px;
    }

    .project-feature-content ol {
        margin-bottom: 26px;
    }

    .project-feature-content li {
        margin-bottom: 14px;
    }

    .merit-note {
        margin: 30px 0;
        padding: 20px 20px;
    }

    .merit-note p {
        font-size: 16px;
        line-height: 2;
    }

    .project-feature .btn-primary {
        display: block;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .project-page-new {
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .project-intro {
        margin-bottom: 30px;
    }

    .project-intro h2 {
        font-size: 26px;
        line-height: 1.5;
    }

    .project-feature {
        margin-bottom: 30px;
    }

    .project-feature-image img {
        max-height: 300px;
    }

    .project-feature-content {
        padding: 26px 24px 30px;
    }

    .project-feature-content h2 {
        font-size: 25px;
    }

    .project-feature-content p,
    .project-feature-content li {
        font-size: 16.5px;
        line-height: 2.05;
    }

    .merit-note {
        padding: 18px;
    }
}


/* Styles from projects.html */
/* 護?專?：??顯示???不???*/
.project-page-new .project-feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5efe4;
    overflow: hidden;
}

.project-page-new .project-feature-image img {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 900px) {
    .project-page-new .project-feature-image img {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}


/* Styles from six-councils.html */
.six-councils-page{background:var(--bg-cream);padding:54px 0 76px}
.six-councils-intro{max-width:900px;margin:0 auto 54px;text-align:center}
.six-councils-intro h1{margin:0 0 20px;color:#3e1b0a;font-size:clamp(30px,4vw,42px);line-height:1.4}
.six-councils-intro p{margin:0;color:var(--text-light);font-size:17px;line-height:1.95}
.council-list{max-width:1080px;margin:0 auto}
.council-list>.section-title{margin-bottom:28px}
.council-card{margin:0 0 30px;padding:34px 42px 36px;background:var(--white);border-radius:14px;border-left:5px solid var(--primary);box-shadow:0 7px 24px rgba(62,27,10,.07)}
.council-card h2{margin:0 0 14px;color:#3e1b0a;font-size:26px;line-height:1.5}
.council-meta{display:inline-block;margin:0 0 18px;color:var(--primary);font-size:15px;font-weight:700;letter-spacing:.04em}
.council-card p{margin:0;color:var(--text-light);font-size:16.5px;line-height:1.95}
.myanmar-pivot{max-width:1080px;margin:58px auto 0;padding:42px 46px 46px;background:#fbf5e9;border-radius:16px}
.myanmar-pivot h2{margin:0 0 24px;color:#3e1b0a;font-size:30px;line-height:1.45}
.pivot-item{margin:0 0 26px}.pivot-item:last-child{margin-bottom:0}
.pivot-item h3{margin:0 0 10px;color:#8B6508;font-size:21px;line-height:1.5}
.pivot-item p{margin:0;color:var(--text-light);font-size:16.5px;line-height:1.95}
@media(max-width:900px){
.six-councils-page{padding:38px 0 50px}.six-councils-intro{margin-bottom:34px;text-align:left}
.six-councils-intro h1{font-size:29px;line-height:1.5}
.six-councils-intro p,.council-card p,.pivot-item p{font-size:17px;line-height:2.05}
.council-card{margin-bottom:22px;padding:26px 28px 28px}.council-card h2{font-size:24px}
.myanmar-pivot{margin-top:38px;padding:30px 28px 32px}.myanmar-pivot h2{font-size:27px}
}
@media(max-width:560px){
.six-councils-page{padding:30px 0 38px}.six-councils-intro h1{font-size:27px}
.council-card{padding:23px 22px 25px;border-left-width:4px;border-radius:11px}.council-card h2{font-size:23px}
.myanmar-pivot{padding:26px 22px 28px;border-radius:12px}.myanmar-pivot h2{font-size:25px}
}
.six-councils-gallery{max-width:1080px;margin:58px auto 0}.six-councils-gallery-intro{margin:0 0 28px;text-align:center}.six-councils-gallery-intro h2{margin:0 0 12px;color:#3e1b0a;font-size:30px;line-height:1.5}.six-councils-gallery-intro p{margin:0 auto;max-width:820px;color:var(--text-light);font-size:16.5px;line-height:1.95}.six-councils-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.six-councils-photo-card{margin:0;background:var(--white);border-radius:14px;overflow:hidden;box-shadow:0 7px 24px rgba(62,27,10,.08)}.six-councils-photo-card img{display:block;width:100%;height:auto;object-fit:contain;background:#f5efe4}.six-councils-photo-card figcaption{padding:18px 20px 20px;color:var(--text-light);font-size:15.5px;line-height:1.8}.six-councils-photo-card strong{display:block;margin-bottom:6px;color:#3e1b0a;font-size:18px}@media(max-width:700px){.six-councils-gallery{margin-top:40px}.six-councils-gallery-intro{text-align:left}.six-councils-gallery-intro h2{font-size:26px}.six-councils-gallery-intro p{font-size:17px;line-height:2}.six-councils-gallery-grid{grid-template-columns:1fr;gap:20px}.six-councils-photo-card figcaption{padding:16px 18px 18px;font-size:16px;line-height:1.9}}


/* Styles from theravada-taiwan.html */
@media (max-width:700px){
  .container{width:auto!important;max-width:none!important;margin-left:22px!important;margin-right:22px!important}
  .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}
}


/* Styles from theravada-taiwan.html */
.taiwan-theravada-page{background:var(--bg-cream);padding:54px 0 76px}
.taiwan-theravada-intro{max-width:900px;margin:0 auto 52px;text-align:center}
.taiwan-theravada-intro h1{margin:0 0 20px;color:#3e1b0a;font-size:clamp(30px,4vw,42px);line-height:1.4}
.taiwan-theravada-intro p{margin:0;color:var(--text-light);font-size:17px;line-height:1.95}
.tw-section{max-width:1080px;margin:0 auto 46px}
.tw-section h2{margin:0 0 22px;color:#8B6508;font-size:29px;line-height:1.5}
.tw-section>p{margin:0 0 24px;color:var(--text-light);font-size:16.5px;line-height:2}
.tw-tradition{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tw-tradition-card{background:var(--white);padding:28px 28px 30px;border-radius:14px;box-shadow:0 7px 24px rgba(62,27,10,.07);border-top:4px solid var(--primary)}
.tw-tradition-card h3{margin:0 0 13px;color:#3e1b0a;font-size:21px;line-height:1.5}
.tw-tradition-card p{margin:0;color:var(--text-light);font-size:16px;line-height:1.95}
.tw-centre{background:var(--white);padding:34px 38px;border-radius:14px;box-shadow:0 7px 24px rgba(62,27,10,.07)}
.tw-centre h3{margin:0 0 13px;color:#3e1b0a;font-size:23px}
.tw-centre p{margin:0;color:var(--text-light);font-size:16.5px;line-height:2}
.tw-table-wrap{overflow-x:auto;background:var(--white);border-radius:14px;box-shadow:0 7px 24px rgba(62,27,10,.07)}
.tw-table{width:100%;border-collapse:collapse;min-width:760px}
.tw-table th,.tw-table td{padding:17px 18px;border-bottom:1px solid #eadfce;text-align:left;vertical-align:top;color:var(--text-light);font-size:15.5px;line-height:1.75}
.tw-table th{background:#f6efe2;color:#3e1b0a;font-weight:700}
.tw-table tr:last-child td{border-bottom:0}
.tw-table a{color:#8B6508;text-decoration:none;font-weight:600}
.tw-table a:hover{text-decoration:underline}
.tw-conclusion{max-width:1080px;margin:0 auto;padding:38px 44px 42px;background:#fbf5e9;border-radius:16px}
.tw-conclusion h2{margin:0 0 18px;color:#3e1b0a;font-size:29px;line-height:1.5}
.tw-conclusion p{margin:0;color:var(--text-light);font-size:16.5px;line-height:2}
@media(max-width:900px){
.taiwan-theravada-page{padding:38px 0 52px}.taiwan-theravada-intro{text-align:left;margin-bottom:36px}
.taiwan-theravada-intro h1{font-size:29px;line-height:1.5}
.taiwan-theravada-intro p,.tw-section>p,.tw-centre p,.tw-conclusion p{font-size:17px;line-height:2.05}
.tw-tradition{grid-template-columns:1fr;gap:18px}.tw-tradition-card{padding:25px 26px 27px}
.tw-conclusion{padding:30px 28px 32px}.tw-conclusion h2{font-size:27px}
}
@media(max-width:560px){
    .tw-section,.tw-conclusion,.taiwan-theravada-intro{
        max-width:100%;
    }
}
@media(max-width:560px){
.taiwan-theravada-page{padding:30px 0 40px}.taiwan-theravada-intro h1{font-size:27px}
.tw-section h2{font-size:26px}.tw-tradition-card{padding:23px 22px 25px}.tw-centre{padding:27px 23px}
.tw-conclusion{padding:27px 22px 29px;border-radius:12px}
}

