{"id":1246,"date":"2026-11-30T10:29:02","date_gmt":"2026-11-30T10:29:02","guid":{"rendered":"https:\/\/caprs.lspr.ac.id\/?page_id=1246"},"modified":"2026-11-30T10:29:57","modified_gmt":"2026-11-30T10:29:57","slug":"community-service","status":"publish","type":"page","link":"https:\/\/caprs.lspr.ac.id\/index.php\/community-service\/","title":{"rendered":"Community Service"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1246\" class=\"elementor elementor-1246\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e35e910 e-con e-atomic-element e-flexbox-base e-default-div e-bd2c9c5 \" data-id=\"e35e910\" data-element_type=\"e-flexbox\" data-e-type=\"e-flexbox\" data-interaction-id=\"e35e910\">\n    \t\t<div class=\"elementor-element elementor-element-c7ccf7e elementor-widget elementor-widget-html\" data-id=\"c7ccf7e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!-- Paste the entire file into one Elementor HTML widget. -->\n<style>\n.caprs-community-service{--cn-ink:#132b3c;--cn-muted:#566b76;--cn-accent:#0a756f;--cn-paper:#f4f8f7;--cn-line:#dce6e4;box-sizing:border-box;width:100%;max-width:none;color:var(--cn-ink);background:var(--cn-paper);font:16px\/1.65 Arial,Helvetica,sans-serif;overflow-wrap:anywhere;text-align:left}\n.caprs-community-service *,.caprs-community-service *::before,.caprs-community-service *::after{box-sizing:border-box}\n.caprs-community-service.cn-full{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);overflow:clip}\n.caprs-community-service .cn-wrap{width:min(100%,1440px);margin:0 auto;padding-inline:clamp(20px,5vw,80px)}\n.caprs-community-service .cn-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#102c3d,#155c60);color:white;padding-block:clamp(64px,9vw,130px)}\n.caprs-community-service .cn-hero::after{content:'';position:absolute;z-index:-1;right:-100px;top:-210px;width:650px;height:650px;border:1px solid #ffffff35;border-radius:50%;box-shadow:0 0 0 55px #ffffff09,0 0 0 110px #ffffff08,0 0 0 165px #ffffff06;pointer-events:none}\n.caprs-community-service .cn-kicker{font-size:12px;line-height:1.5;font-weight:700;letter-spacing:2px;text-transform:uppercase;margin:0 0 14px;color:inherit}\n.caprs-community-service .cn-hero .cn-kicker{color:#b6e5df}\n.caprs-community-service .cn-hero h1{font-size:clamp(44px,7vw,90px);font-weight:750;letter-spacing:-.055em;line-height:1.02;color:white;margin:0 0 20px}\n.caprs-community-service .cn-hero p:not(.cn-kicker){max-width:630px;margin:0;color:#e0eeed;font-size:clamp(16px,2vw,20px)}\n.caprs-community-service .cn-main{padding-block:clamp(35px,6vw,80px)}\n.caprs-community-service .cn-sectionhead{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 24px}\n.caprs-community-service .cn-sectionhead h2{font-size:clamp(26px,4vw,40px);letter-spacing:-.035em;line-height:1.15;color:var(--cn-ink);margin:0;font-weight:750}\n.caprs-community-service .cn-sectionhead .cn-kicker{color:var(--cn-accent);margin-bottom:6px}\n.caprs-community-service .cn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}\n.caprs-community-service .cn-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--cn-line);border-radius:20px;overflow:hidden;transition:transform .22s,box-shadow .22s}\n.caprs-community-service .cn-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px #132b3c12}\n.caprs-community-service .cn-photo{display:block;position:relative;aspect-ratio:16\/10;overflow:hidden;background:linear-gradient(140deg,#163d4c,#0b7770);color:white;text-decoration:none}\n.caprs-community-service .cn-photo img{position:relative;display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .4s}\n.caprs-community-service .cn-card:hover .cn-photo img{transform:scale(1.035)}\n.caprs-community-service .cn-noimage{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(20px,3vw,34px);font-weight:700;letter-spacing:4px;color:#fff9}\n.caprs-community-service .cn-body{padding:clamp(20px,2.5vw,32px);display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}\n.caprs-community-service .cn-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;font-weight:600;color:var(--cn-muted);margin:0 0 14px}\n.caprs-community-service .cn-tag{color:var(--cn-accent);background:#e5f4f0;border-radius:100px;padding:4px 12px;text-transform:uppercase;letter-spacing:1px}\n.caprs-community-service .cn-card h3{font-size:clamp(19px,2vw,24px);font-weight:750;line-height:1.3;letter-spacing:-.025em;margin:0 0 12px;color:var(--cn-ink)}\n.caprs-community-service .cn-card h3 a{color:inherit;text-decoration:none}\n.caprs-community-service .cn-card h3 a:hover{color:var(--cn-accent)}\n.caprs-community-service .cn-excerpt{color:var(--cn-muted);font-size:15px;line-height:1.7;margin:0 0 22px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.caprs-community-service .cn-read{display:inline-flex;align-items:center;gap:8px;margin-top:auto;color:var(--cn-accent);font-weight:700;font-size:14px;text-decoration:none}\n.caprs-community-service .cn-read:hover{text-decoration:underline}\n.caprs-community-service .cn-featured{grid-column:1\/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);min-height:350px}\n.caprs-community-service .cn-featured .cn-photo{aspect-ratio:auto;min-height:350px}\n.caprs-community-service .cn-featured .cn-photo img{position:absolute;inset:0}\n.caprs-community-service .cn-featured .cn-body{justify-content:center;padding:clamp(25px,4vw,60px)}\n.caprs-community-service .cn-featured h3{font-size:clamp(26px,3vw,44px);line-height:1.13}\n.caprs-community-service .cn-featured .cn-excerpt{-webkit-line-clamp:4}\n.caprs-community-service .cn-featured .cn-read{margin-top:5px}\n.caprs-community-service .cn-actions{text-align:center;margin-top:40px;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}\n.caprs-community-service .cn-more{font:inherit;font-weight:700;background:var(--cn-ink);color:white;border:1px solid var(--cn-ink);border-radius:100px;padding:14px 30px;cursor:pointer;text-decoration:none;display:inline-block;transition:background .2s}\n.caprs-community-service .cn-more:hover{background:var(--cn-accent);color:white}\n.caprs-community-service .cn-more:disabled{opacity:.55;cursor:wait}\n.caprs-community-service [hidden]{display:none!important}\n.caprs-community-service .cn-status{color:var(--cn-muted);text-align:center;margin:20px 0;min-height:0}\n.caprs-community-service .cn-status:empty{display:none}\n.caprs-community-service .cn-actions:not(:has(> :not([hidden]))){display:none}\n.caprs-community-service .cn-fallback{color:var(--cn-accent);font-weight:700;text-decoration:underline}\n.caprs-community-service a:focus-visible,.caprs-community-service button:focus-visible{outline:3px solid #e9ad44;outline-offset:3px}\n@media(max-width:900px){.caprs-community-service .cn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.caprs-community-service .cn-featured{grid-template-columns:1fr 1fr}.caprs-community-service .cn-featured .cn-photo{min-height:300px}}\n@media(max-width:600px){.caprs-community-service .cn-grid{grid-template-columns:minmax(0,1fr);gap:16px}.caprs-community-service .cn-featured{display:flex;min-height:0}.caprs-community-service .cn-featured .cn-photo{min-height:0;aspect-ratio:16\/10}.caprs-community-service .cn-hero::after{opacity:.45}.caprs-community-service .cn-sectionhead{align-items:flex-start;flex-direction:column}.caprs-community-service .cn-hero h1{font-size:clamp(40px,12vw,64px)}}\n@media(prefers-reduced-motion:reduce){.caprs-community-service *{transition:none!important}}\n<\/style>\n<section class=\"caprs-community-service cn-full\" data-caprs-community-service aria-label=\"CAPRS Community Service\">\n  <header class=\"cn-hero\"><div class=\"cn-wrap\">\n    <p class=\"cn-kicker\">Centre for ASEAN Public Relations Studies<\/p>\n    <h1>Community Service.<\/h1>\n    <p>Discover how CAPRS connects education, communication and community engagement across ASEAN.<\/p>\n  <\/div><\/header>\n  <div class=\"cn-main cn-wrap\">\n    <div class=\"cn-sectionhead\"><div><p class=\"cn-kicker\">Education &amp; community engagement<\/p><h2>Community Initiatives<\/h2><\/div><\/div>\n    <div class=\"cn-grid\" data-grid aria-busy=\"true\"><\/div>\n    <p class=\"cn-status\" data-status role=\"status\" aria-live=\"polite\">Loading activities\u2026<\/p>\n    <div class=\"cn-actions\">\n      <button class=\"cn-more\" data-more type=\"button\" hidden>Load More Activities<\/button>\n      <a class=\"cn-fallback\" data-fallback href=\"https:\/\/caprs.lspr.ac.id\/index.php\/category\/community-service\/\" hidden>Open the original community service archive<\/a>\n    <\/div>\n    <noscript><p><a href=\"https:\/\/caprs.lspr.ac.id\/index.php\/2016\/09\/19\/asean-goes-to-school-knowing-asean-education\/\">ASEAN Goes To School : Knowing ASEAN Education<\/a><\/p><\/noscript>\n  <\/div>\n<\/section>\n<script>\n(function(){\n  'use strict';\n  const root=document.currentScript.previousElementSibling;\n  if(!root||!root.matches('[data-caprs-community-service]')||root.dataset.initialized)return;\n  root.dataset.initialized='1';\n  const site=location.hostname.replace(\/^www\\.\/,'')==='caprs.lspr.ac.id'?location.origin:'https:\/\/caprs.lspr.ac.id';\n  const archive=site+'\/index.php\/category\/community-service\/';\n  const grid=root.querySelector('[data-grid]'),status=root.querySelector('[data-status]'),more=root.querySelector('[data-more]'),fallback=root.querySelector('[data-fallback]');\n  const pageSize=10,seen=new Set();\n  let api=null,category=null,page=1,next=archive,mode=null,busy=false,hasMore=true;\n  function clean(html){const t=document.createElement('template');t.innerHTML=String(html||'');return (t.content.textContent||'').replace(\/\\s+\/g,' ').trim();}\n  function url(value,base=site){try{if(!value)return '';const u=new URL(value,base);return \/^https?:$\/.test(u.protocol)?u.href:'';}catch(e){return '';}}\n  function sameSite(value){try{return new URL(value).origin===new URL(site).origin;}catch(e){return false;}}\n  function date(value){if(!value)return '';const d=new Date(value);return Number.isNaN(d.getTime())?'':new Intl.DateTimeFormat('en-GB',{day:'numeric',month:'short',year:'numeric',timeZone:'Asia\/Jakarta'}).format(d);}\n  function node(tag,cls,txt){const e=document.createElement(tag);if(cls)e.className=cls;if(txt)e.textContent=txt;return e;}\n  function add(post){\n    const link=url(post.link);if(!link||!sameSite(link)||!post.title||seen.has(link))return;\n    const featured=seen.size===0;seen.add(link);\n    const card=node('article','cn-card'+(featured?' cn-featured':''));\n    const photo=node('a','cn-photo');photo.href=link;photo.tabIndex=-1;photo.setAttribute('aria-hidden','true');\n    photo.append(node('span','cn-noimage','CAPRS'));\n    const source=url(post.image);\n    if(source){const img=node('img');img.alt='';img.loading=featured?'eager':'lazy';img.decoding='async';img.addEventListener('error',()=>img.remove(),{once:true});img.src=source;photo.append(img);}\n    const body=node('div','cn-body'),meta=node('div','cn-meta');\n    meta.append(node('span','cn-tag',featured?'Featured Initiative':'Community Service'));\n    if(post.date)meta.append(node('span','','Published '+post.date));\n    const h=node('h3'),a=node('a','',post.title);a.href=link;h.append(a);body.append(meta,h);\n    if(post.excerpt)body.append(node('p','cn-excerpt',post.excerpt));\n    const read=node('a','cn-read','Read More \u2192');read.href=link;read.setAttribute('aria-label','Read More: '+post.title);body.append(read);\n    card.append(photo,body);grid.append(card);\n  }\n  function endpoint(kind,route,params){const u=new URL(kind==='pretty'?site+'\/wp-json'+route:kind==='index'?site+'\/index.php\/wp-json'+route:site+'\/');if(kind==='query')u.searchParams.set('rest_route',route);Object.entries(params).forEach(([k,v])=>u.searchParams.set(k,v));return u.href;}\n  async function fetchResponse(address){const ctrl=new AbortController();const timer=setTimeout(()=>ctrl.abort(),12000);try{const r=await fetch(address,{signal:ctrl.signal,credentials:'same-origin'});if(!r.ok)throw Error('HTTP '+r.status);return r;}finally{clearTimeout(timer);}}\n  async function discover(){\n    const checks=['pretty','index','query'].map(async kind=>{const r=await fetchResponse(endpoint(kind,'\/wp\/v2\/categories',{slug:'community-service'}));const terms=await r.json();const term=Array.isArray(terms)&&terms.find(t=>t.slug==='community-service');if(!term)throw Error('Category not available');return {kind,id:term.id};});\n    const result=await Promise.any(checks);api=result.kind;category=result.id;\n  }\n  async function restPage(){\n    const r=await fetchResponse(endpoint(api,'\/wp\/v2\/posts',{categories:category,per_page:pageSize,page,orderby:'date',order:'desc',_embed:1}));\n    const items=await r.json();if(!Array.isArray(items))throw Error('Invalid REST response');\n    const totalHeader=r.headers.get('X-WP-TotalPages'),total=totalHeader?Number(totalHeader):NaN;\n    items.forEach(p=>{const media=p._embedded?.['wp:featuredmedia']?.[0];add({title:clean(p.title?.rendered),excerpt:clean(p.excerpt?.rendered),link:p.link,date:date(p.date_gmt?p.date_gmt+'Z':p.date),image:media?.media_details?.sizes?.large?.source_url||media?.source_url});});\n    hasMore=Number.isFinite(total)?page<total:items.length===pageSize;page++;\n  }\n  function extractArchive(html,address){\n    const doc=new DOMParser().parseFromString(html,'text\/html');\n    if(doc.querySelector('[data-caprs-community-service]'))throw Error('Original archive has been replaced');\n    const found=new Map();\n    function parseCard(card){\n      if(!card)return;\n      const a=card.querySelector('h2 a[href], h3.entry-title a[href], .entry-title a[href], h3.blog-shortcode-post-title a[href]');if(!a)return;\n      const link=url(a.getAttribute('href'),address),title=a.textContent.trim();if(!sameSite(link)||!title||\/\\\/(category|author|tag)\\\/\/.test(link))return;\n      const img=card.querySelector('.fusion-image-wrapper img, .fusion-flexslider img, .wp-post-image, .post-thumbnail img, img');\n      const rawImage=img&&(img.getAttribute('data-src')||img.getAttribute('data-lazy-src')||img.getAttribute('data-orig-src')||img.getAttribute('src'));\n      const ex=card.querySelector('.fusion-post-content-container, .entry-summary, .post-content, .excerpt');\n      const time=card.querySelector('time[datetime], [itemprop=\"datePublished\"], .updated[datetime], .published[datetime]');\n      if(!found.has(link))found.set(link,{link,title,image:url(rawImage,address),date:date(time&&(time.getAttribute('datetime')||time.getAttribute('content')||time.textContent)),excerpt:(ex||card.querySelector('p'))?.textContent.trim()||''});\n    }\n    doc.querySelectorAll('article, .fusion-post-wrapper, .fusion-blog-layout-grid .fusion-post-grid').forEach(parseCard);\n    if(!found.size)doc.querySelectorAll('main h2 a[href], #content h2 a[href], .fusion-blog-shortcode h2 a[href]').forEach(a=>parseCard(a.closest('article,.fusion-post-wrapper,.post,.fusion-post-content')||a.parentElement.parentElement));\n    if(!found.size)throw Error('No archive posts detected');\n    const current=Number(new URL(address).pathname.match(\/\\\/page\\\/(\\d+)\\\/?$\/)?.[1]||1);\n    const candidate=Array.from(doc.querySelectorAll('a[href],link[rel=\"next\"]')).map(a=>url(a.getAttribute('href'),address)).find(link=>sameSite(link)&&new RegExp('\/category\/community-service\/page\/'+(current+1)+'\/?$').test(new URL(link).pathname));\n    return {items:[...found.values()],next:candidate||null};\n  }\n  async function archivePage(){if(!next){hasMore=false;return;}const address=next;const r=await fetchResponse(address);const result=extractArchive(await r.text(),address);result.items.forEach(add);next=result.next;hasMore=!!next;}\n  async function load(){\n    if(busy||!hasMore)return;busy=true;if(root.dataset.cachedFallback){grid.replaceChildren();seen.clear();delete root.dataset.cachedFallback;}grid.setAttribute('aria-busy','true');more.disabled=true;status.textContent='Loading activities\u2026';fallback.hidden=true;\n    try{\n      if(!mode){try{await discover();await restPage();mode='rest';}catch(e){await archivePage();mode='archive';}}\n      else if(mode==='rest')await restPage();else await archivePage();\n      status.textContent=seen.size?'':'No community service posts available yet.';more.textContent='Load More Activities';more.hidden=!hasMore;\n    }catch(e){\n      if(!seen.size) {\n        add({link:site+'\/index.php\/2016\/09\/19\/asean-goes-to-school-knowing-asean-education\/',title:'ASEAN Goes To School : Knowing ASEAN Education',date:'19 Sep 2016',image:'https:\/\/media-uploads.lspr.ac.id\/lspr\/caprs\/2016\/09\/feature-2.jpg',excerpt:'CAPRS and the Ministry of Foreign Affairs introduced ASEAN education to students at SMA Labschool Rawamangun, Jakarta, on 18 March 2016.'});\n        \/\/ Discard fallback before a fresh live request so ordering and deduplication stay correct.\n        mode=null;page=1;next=archive;\n        root.dataset.cachedFallback='1';\n      }\n      status.textContent='Live updates could not be loaded. Please try again.';more.textContent='Try Again';more.hidden=false;fallback.hidden=location.pathname.replace(\/\\\/$\/,'')===new URL(archive).pathname.replace(\/\\\/$\/,'');console.warn('CAPRS community service:',e);}\n    finally{busy=false;more.disabled=false;grid.setAttribute('aria-busy','false');}\n  }\n  more.addEventListener('click',load);load();\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\n<\/div>\n\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Centre for ASEAN Public Relations Studies Community Service. Discover how CAPRS connects education, communication and community engagement across ASEAN. Education &amp; community engagement Community Initiatives Loading activities\u2026 Load More Activities Open the original community service archive ASEAN Goes To School : Knowing ASEAN Education<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-1246","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/pages\/1246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/comments?post=1246"}],"version-history":[{"count":4,"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/pages\/1246\/revisions"}],"predecessor-version":[{"id":1251,"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/pages\/1246\/revisions\/1251"}],"wp:attachment":[{"href":"https:\/\/caprs.lspr.ac.id\/index.php\/wp-json\/wp\/v2\/media?parent=1246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}