/*
Theme Name: HIFC Community
Description: Data-ready WordPress theme imported from the HIFC static site.
Version: 1.0.0
*/
*{box-sizing:border-box}html,body{height:100%}body{margin:0;width:100%;max-width:100%;overflow:hidden;font-family:Arial,Helvetica,sans-serif;color:#222;line-height:1.6;background:#fff;display:flex;flex-direction:column}header{flex-shrink:0}footer{flex-shrink:0}.layout{flex:1;min-height:0;overflow-y:auto}
header{background:#fff;border-bottom:1px solid #eee;padding:12px 20px;display:flex;align-items:center;gap:16px;flex-wrap:nowrap;min-width:0}
.logo{height:128px;width:auto}
.topnav{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.topnav a{color:#222;text-decoration:none;padding:8px 12px;border-radius:20px;font-weight:bold}
.topnav a:hover{background:#f1f1f1}
.layout{display:flex;width:100%;max-width:100%;margin:0;align-items:flex-start;box-sizing:border-box}
.sidebar{width:240px;flex-shrink:0;padding:20px;border-right:1px solid #eee;background:#fff}
.sidebar summary{cursor:pointer;font-weight:bold;padding:10px;border-radius:12px;background:#f7f7f7;list-style:none}
.sidebar summary::-webkit-details-marker{display:none}
.sidebar h3{font-size:15px;margin:20px 0 6px;color:#14532d}
.sidebar a{display:block;color:#222;text-decoration:none;padding:7px 10px;border-radius:10px}
.sidebar a:hover{background:#f1f1f1}
main{flex:1;min-width:0;width:100%;max-width:100%;padding:28px 32px 50px;box-sizing:border-box}
.hero{text-align:center}
.hero h1{font-size:44px;line-height:1.25;margin:0 0 12px}
.hero p{font-size:18px;color:#444;max-width:720px;margin:12px auto}
.strip{display:grid;grid-template-columns:1fr;gap:16px;margin:24px 0;width:100%;max-width:100%}
.strip img{width:100%;height:170px;object-fit:cover;border-radius:20px}
img.photo{width:100%;height:auto;border-radius:20px;display:block;margin:16px 0}
h2{font-size:28px;margin:20px 0 10px}
h1{font-size:36px;line-height:1.25}
.cards{display:grid;grid-template-columns:1fr;gap:14px;margin-top:20px;width:100%;max-width:100%}
.card{border:1px solid #e5e5e5;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.card img{width:100%;height:160px;object-fit:cover;display:block}
.card .pad{padding:14px 16px}
.card a{color:#14532d;font-weight:bold;text-decoration:none}
.cta{border:1px solid #e5e5e5;border-radius:20px;padding:22px;margin-top:24px;background:#fff}
.btn{display:inline-block;background:#14532d;color:#fff;padding:10px 22px;border-radius:24px;text-decoration:none}
footer{background:#eaf2fb;border-top:3px solid #01498b;padding:22px 20px;text-align:center;color:#222}
.note{background:#fff7cc;border-radius:12px;padding:12px;margin-top:18px}
@media(max-width:800px){.layout{flex-direction:column}.sidebar{width:100%;border-right:none;border-bottom:1px solid #eee}.strip{display:grid;grid-template-columns:1fr;gap:16px;margin:24px 0;width:100%;max-width:100%}.hero h1{font-size:34px}}

.icon{width:92px;height:92px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:52px;margin:0 auto 12px;background:#eef4ff;border:3px solid #01498b;box-shadow:0 4px 14px rgba(0,0,0,.10)}
.icon.green{background:#eef7ee;border-color:#14532d}
.icon.red{background:#fdeeee;border-color:#c0392b}
.card .icon{margin-top:18px}
.banner{background:linear-gradient(90deg,#01498b,#14532d);color:#fff;border-radius:20px;padding:22px;text-align:center;margin:16px 0}
.banner h2{color:#fff;margin:0}
.graphic-row{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.graphic-row .icon{margin:0}

.icon-label{text-align:center;font-size:14px;font-weight:bold;margin-top:6px}
.graphic-item{text-align:center;flex:1;min-width:120px}

@media(max-width:800px){.layout{flex-direction:column}.sidebar{width:100%;border-right:none;border-bottom:1px solid #eee}.hero h1{font-size:34px}}
@media(max-width:520px){.strip{display:grid;grid-template-columns:1fr;gap:16px;margin:24px 0;width:100%;max-width:100%}.cards{display:grid;grid-template-columns:1fr;gap:14px;margin-top:20px;width:100%;max-width:100%}.strip img{height:200px}}

.sidebar{width:260px}
.side-toggle{background:#14532d;color:#fff;border:none;padding:8px 14px;border-radius:20px;cursor:pointer;font-weight:bold}
body.side-hidden .sidebar{display:none}
.group-head{width:100%;text-align:left;background:#f7f7f7;border:none;padding:10px 12px;border-radius:12px;font-weight:bold;cursor:pointer;font-size:15px}
.group-body{display:none;padding:6px 0}
.group.open .group-body{display:block}
.group.open .group-head{background:#eef4ff}

img{max-width:100%;height:auto}
header{width:100%;max-width:100%;box-sizing:border-box}
.sidebar{max-width:100%;box-sizing:border-box}

.title-row{display:flex;align-items:center;justify-content:flex-start;gap:14px;margin:8px 0;min-width:0}
.title-row h1{margin:0;font-size:clamp(32px,4.5vw,54px);line-height:1.15;flex:1;min-width:0;overflow-wrap:break-word}
.title-row h2{font-size:clamp(28px,3.8vw,44px)}
.icon.big{width:125px;height:125px;font-size:72px;flex-shrink:0;margin:0}
.side-toggle-small{font-size:14px;padding:2px 8px;background:#f1f1f1;border:1px solid #ddd;border-radius:6px;cursor:pointer;margin-bottom:12px}
#side-show{display:none;align-self:flex-start;margin:20px 0 0 12px;font-size:16px;padding:4px 8px;background:#fff;border:1px solid #ddd;border-radius:6px;cursor:pointer;flex-shrink:0}
body.side-hidden #side-show{display:block}

.header-tagline{font-size:36px;font-weight:bold;line-height:1.2;margin-left:16px}

@media(min-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1400px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.strip{grid-template-columns:repeat(4,minmax(0,1fr))}}

.title-row h2{margin:0;font-size:44px;line-height:1.15}

.card{min-width:0;box-sizing:border-box}
.cards{box-sizing:border-box}
form.contact-form{border:1px solid #e5e5e5;border-radius:20px;padding:22px;margin:20px 0;background:#fff}
form.contact-form label{display:block;font-weight:bold;margin:12px 0 4px}
form.contact-form input,form.contact-form select,form.contact-form textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ddd;border-radius:10px;font-size:16px}

.header-text{display:flex;flex-direction:column;justify-content:center;margin-left:16px;flex:1;min-width:0}
header img,header .logo{flex-shrink:0}
.header-tagline{font-size:clamp(24px,3.2vw,36px);line-height:1.2;overflow-wrap:break-word}
.header-sub{font-size:14px;line-height:1.35;overflow-wrap:break-word;max-width:820px}
.header-tagline{margin-left:0}
.header-sub{font-size:16px;line-height:1.3;color:#333;margin-top:2px}
.group-head{display:flex;justify-content:space-between;align-items:center;background:#f7f7f7;border:none;padding:10px 12px;border-radius:12px;font-weight:bold;cursor:default;font-size:15px}
.group-head a{flex:1;color:inherit;text-decoration:none}
.group-toggle{background:none;border:none;font-size:15px;cursor:pointer;padding:4px 6px}
.icon.about-icon{width:110px;height:110px;font-size:64px}
.pay-row{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start;margin:16px 0}
.pay-item{text-align:center;font-size:14px;max-width:140px}
.pay-item .pay-icon{font-size:28px;line-height:1}
.social-row{display:flex;gap:14px;justify-content:center;margin-top:10px;font-size:14px}

.layout{overflow:hidden}
.sidebar{overflow-y:auto;align-self:stretch}
main{flex:1;overflow-y:auto;min-width:0;min-height:0}
@media(max-width:800px){.layout{overflow-y:auto}.sidebar{overflow:visible}main{overflow:visible}}
.dyn{display:none}
.dyn.show{display:block}

.breadcrumb{font-size:14px;color:#666;margin:0 0 12px;overflow-wrap:break-word}
.breadcrumb a{color:#01498b;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{margin:0 6px;color:#999}
.breadcrumb .current{color:#222;font-weight:bold}
@media(max-width:800px){
  .title-row h1{font-size:32px}
  .icon.big{width:90px;height:90px;font-size:52px}
  .icon.about-icon{width:80px;height:80px;font-size:48px}
  .title-row{gap:10px}
  main{padding:20px 16px 40px}
  header{padding:10px 12px;gap:10px}
  .header-tagline{font-size:24px}
  .header-sub{font-size:13px}
  .breadcrumb{font-size:13px}
}

/* v32 scroll fix: sidebar and main are two independent frames, each full height of .layout */
.layout{align-items:stretch;overflow:hidden}
.sidebar{align-self:stretch;overflow-y:auto;min-height:0}
main{align-self:stretch;overflow-y:auto;min-height:0}
@media(max-width:800px){.layout{flex-direction:column;overflow-y:auto;align-items:stretch}.sidebar{overflow:visible;align-self:auto}main{overflow:visible;align-self:auto}}

/* v33 header: subtext aligned between B of Building and R of Together, two lines, smaller */
.header-text{flex:1;min-width:0;max-width:720px}
.header-tagline{font-size:clamp(26px,3.2vw,34px);line-height:1.2;margin:0}
.header-sub{font-size:14px;line-height:1.4;color:#333;margin-top:4px;max-width:100%;overflow-wrap:break-word}
@media(max-width:800px){.header-text{max-width:none}.header-tagline{font-size:24px}.header-sub{font-size:13px}}

/* v34 header subtext balanced, within tagline width */
.header-text{max-width:660px}
.header-sub{font-size:14px;line-height:1.4;text-wrap:balance}

/* v35 header: tagline left, subtext centered on tagline center */
.header-tagline{text-align:left}
.header-sub{text-align:center}

/* v36 header: container = tagline width, so subtext center = tagline center */
.header-text{flex:0 1 auto;width:max-content;max-width:calc(100% - 160px)}
.header-tagline{text-align:left;width:max-content;max-width:100%}
.header-sub{text-align:center;width:100%;max-width:100%}

/* v37 header: width is set by JS to tagline width, subtext centered on it */
.header-text{flex:0 1 auto;max-width:660px}
.header-tagline{display:inline-block;text-align:left;max-width:100%}
.header-sub{text-align:center;width:100%}

/* v38 header: tagline one line on desktop, never split */
@media(min-width:801px){.header-tagline{white-space:nowrap}}

/* v39: logo 128px, icons smaller to match font, title vertically centered */
.icon.big{width:100px;height:100px;font-size:58px}
.icon.about-icon{width:90px;height:90px;font-size:52px}
@media(max-width:800px){.icon.big{width:75px;height:75px;font-size:44px}.icon.about-icon{width:70px;height:70px;font-size:42px}}

.prog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.prog-grid label{font-weight:normal}
@media(max-width:520px){.prog-grid{grid-template-columns:1fr}}

/* v42 menu: main titles larger than sub items, sub items indented 3 characters right */
.group-head{font-size:18px}
.sidebar a{font-size:16px}
.group-body{padding-left:3ch}

/* v43 page titles smaller, so long titles fit one line */
.title-row h1{font-size:clamp(28px,3.5vw,40px)}
.title-row h2{font-size:clamp(24px,3vw,36px)}
.icon.big{width:80px;height:80px;font-size:48px}
.icon.about-icon{width:75px;height:75px;font-size:44px}
@media(max-width:800px){.title-row h1{font-size:28px}.icon.big{width:65px;height:65px;font-size:38px}.icon.about-icon{width:60px;height:60px;font-size:36px}}

/* v44 swap: header tagline = old page title size, page titles = old header size, subtext bold same size */
.header-tagline{font-size:clamp(36px,4.5vw,54px)}
.title-row h1{font-size:clamp(28px,3vw,34px)}
.title-row h2{font-size:clamp(24px,2.8vw,34px)}
.header-sub{font-size:14px;font-weight:bold}
@media(max-width:800px){.header-tagline{font-size:32px}.title-row h1{font-size:28px}.header-sub{font-size:13px;font-weight:bold}}

/* v45 header center: old 660px cap broke alignment when tagline grew to 54px, remove it */
.header-text{max-width:none}
.header-tagline{max-width:none}
.header-sub{max-width:none}

/* v46 footer social: icons + breathing room, not cramped text */
.social-row{display:flex;gap:28px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:12px;padding:6px 24px;font-size:15px}
.social-row span{padding:4px 8px;white-space:nowrap}

/* v47 professional footer: arranged, not a centered stack; 15% narrower, ~15% shorter */
footer{padding:16px 0 14px}
.foot-inner{width:85%;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.foot-brand{font-size:14px;max-width:340px}
.foot-links{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}
.foot-links a{color:#01498b;text-decoration:none;white-space:nowrap}
.foot-links a:hover{text-decoration:underline}
.social-row{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin:0;padding:0;font-size:14px}
.soc{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:#fff;font-weight:bold;flex-shrink:0}
.soc-fb{background:#1877f2;font-size:20px}
.soc-ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);font-size:17px}
.soc-x{background:#000;font-size:17px}
.soc-li{background:#0a66c2;font-size:14px}
.foot-bottom{width:85%;margin:10px auto 0;padding-top:8px;border-top:1px solid #cbd6e6;font-size:13px;text-align:center;color:#333}
@media(max-width:800px){.foot-inner{width:92%;flex-direction:column;align-items:flex-start}.foot-bottom{width:92%;text-align:left}}

/* v48 photo galleries: 2x2, not one huge frame */
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.gallery img{width:100%;height:auto;border-radius:12px;display:block}
@media(max-width:520px){.gallery{grid-template-columns:1fr}}

/* v51 gallery uniform height, no white gaps from different photo ratios */
.gallery img{height:240px;object-fit:cover}
@media(max-width:800px){.gallery img{height:200px}}
@media(max-width:520px){.gallery img{height:220px}}

/* v53 dark / light mode toggle */
#theme-toggle{width:100%;padding:8px 12px;border-radius:20px;border:1px solid #ddd;background:#f7f7f7;cursor:pointer;font-weight:bold;margin-bottom:12px}
body.dark{background:#121212;color:#e6e6e6}
body.dark header{background:#1a1a1a;border-bottom-color:#333}
body.dark .header-tagline{color:#fff}
body.dark .header-sub{color:#ccc}
body.dark .sidebar{background:#1a1a1a;border-right-color:#333}
body.dark .sidebar a{color:#ddd}
body.dark .sidebar a:hover{background:#2a2a2a}
body.dark .group-head{background:#2a2a2a;color:#fff}
body.dark .group.open .group-head{background:#24344a}
body.dark .side-toggle-small,body.dark #theme-toggle{background:#2a2a2a;color:#eee;border-color:#444}
body.dark #side-show{background:#2a2a2a;color:#eee;border-color:#444}
body.dark main{background:#121212;color:#e6e6e6}
body.dark main a,body.dark .breadcrumb a,body.dark .foot-links a{color:#8ab4f8}
body.dark .breadcrumb .current{color:#fff}
body.dark h1,body.dark h2,body.dark h3{color:#fff}
body.dark .card,body.dark .cta,body.dark form.contact-form{background:#1e1e1e;border-color:#333}
body.dark .card a{color:#8ab4f8}
body.dark .icon{background:#24344a;border-color:#8ab4f8}
body.dark footer{background:#1a1a1a;color:#ddd}
body.dark .foot-bottom{border-top-color:#333;color:#aaa}
body.dark input,body.dark select,body.dark textarea{background:#2a2a2a;color:#eee;border-color:#555}
body.dark .note{background:#333300;color:#eee}
body.dark .hero p{color:#ccc}

/* v55 participate checkbox alignment: checkbox left of its label, not above it */
form.contact-form input[type=checkbox]{width:auto;flex-shrink:0;margin:0}
.prog-grid label{display:flex;align-items:center;gap:8px;font-weight:bold;margin:0;text-align:left}

/* v56 official brand payment icons, not emoji */
.pay-logo{width:48px;height:48px;object-fit:contain;display:block}
.pay-icon{display:flex;align-items:center;justify-content:center;min-height:48px}

/* v57 uniform donate icon size: all pay icons 32px tall, not 48 vs 28 */
.pay-logo{width:32px;height:32px}
.pay-item .pay-icon{font-size:32px}
.pay-icon{min-height:36px;height:36px}
