/* ===========================================================
   Cifours Theme — main stylesheet
   Edit the palette below or via Appearance → Customize.
   =========================================================== */
:root {
	--brand-50: #ecfdf5;
	--brand-100: #d1fae5;
	--brand-200: #a7f3d0;
	--brand-300: #6ee7b7;
	--brand-500: #10b981;
	--brand-600: #059669;
	--brand-700: #047857;
	--brand-800: #065f46;
	--brand-900: #064e3b;
	--accent-500: #f97316;
	--accent-600: #ea580c;
	--ink-900: #0f2417;
	--ink-700: #1f3d2a;
	--ink-500: #516159;
	--ink-400: #7a877f;
	--line: rgba(15, 36, 23, 0.10);
	--shadow-soft: 0 20px 45px -25px rgba(6, 78, 59, 0.35);
	--shadow-card: 0 18px 40px -28px rgba(15, 36, 23, 0.45);
	--radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	color: var(--ink-700);
	background: #fff;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink-900); line-height: 1.15; margin: 0; font-weight: 800; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }
.section { padding: 88px 0; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; }
.icon-xs { width: 16px; height: 16px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 34px; height: 34px; }
.icon-xl { width: 92px; height: 92px; }
svg { flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; cursor: pointer; font-weight: 600; font-size: 14px;
	padding: 12px 24px; border-radius: 999px; transition: all .2s ease;
	font-family: inherit;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn-accent { background: var(--accent-500); color: #fff; box-shadow: var(--shadow-soft); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--brand-600); color: var(--brand-700); background: transparent; }
.btn-outline:hover { background: var(--brand-50); }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Shared bits ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
	color: var(--brand-600);
}
.eyebrow-light { color: var(--brand-300); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--ink-500); margin-top: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; max-width: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); font-weight: 600; font-size: 14px; margin-top: 14px; }
.link-arrow:hover { color: var(--brand-700); }
.empty-note { grid-column: 1/-1; text-align: center; color: var(--ink-400); padding: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.progress { height: 10px; border-radius: 999px; background: var(--brand-100); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); }

/* gradient helpers for placeholder media */
.g-blue { background: linear-gradient(135deg, #7dd3fc, #0ea5e9); }
.g-orange { background: linear-gradient(135deg, #fed7aa, var(--accent-500)); }
.g-green { background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); }
.g-amber { background: linear-gradient(135deg, #fcd34d, var(--accent-500)); }
.g-rose { background: linear-gradient(135deg, #fda4af, #f43f5e); }
.g-teal { background: linear-gradient(135deg, #5eead4, #0d9488); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
/* Soft white scrim at the top (transparent navbar) so the colored logo + nav stay readable over the dark hero. Fades out once scrolled. */
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220%; pointer-events: none; z-index: -1; opacity: 1; transition: opacity .3s; background: linear-gradient(to bottom, rgba(255,255,255,.85) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 100%); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }
.brand-name { font-size: 21px; font-weight: 800; color: var(--ink-900); }
.is-scrolled .brand-name { color: var(--ink-900); }
.brand-light .brand-name { color: #fff; }
.primary-nav .nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: 14px; font-weight: 600; color: var(--ink-900); transition: color .2s; }
.site-header:not(.is-scrolled) .primary-nav a { color: var(--ink-900); }
.primary-nav a:hover { color: var(--brand-600); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.header-phone svg { color: var(--brand-600); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-900); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 128px; color: #fff;
	background-image: linear-gradient(135deg, rgba(6,78,59,.92), rgba(6,95,70,.82) 50%, rgba(4,120,87,.72)), url('../img/hero-bg.jpg');
	background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-blob-1 { width: 380px; height: 380px; right: -90px; top: -90px; background: rgba(16,185,129,.35); }
.hero-blob-2 { width: 320px; height: 320px; left: 25%; bottom: -120px; background: rgba(249,115,22,.25); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 30px 20px 96px; }
.hero-title { font-size: clamp(38px, 6vw, 62px); margin: 18px 0; color: #fff; }
.hero-text { font-size: 18px; color: rgba(209,250,229,.9); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 46px; }
.hero-meta strong { font-size: 24px; }
.hero-meta span { color: var(--brand-200); font-size: 14px; }
.avatars { display: flex; }
.avatars span { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand-800); margin-left: -12px; background: linear-gradient(135deg, var(--brand-300), var(--accent-500)); }
.avatars span:first-child { margin-left: 0; }
.hero-visual { position: relative; }
.hero-photo-main { position: relative; aspect-ratio: 11/9; max-width: 470px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); animation: floaty 6s ease-in-out infinite; }
.hero-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-float { position: absolute; bottom: -18px; left: -6px; width: 210px; aspect-ratio: 5/4; border-radius: 18px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow-card); z-index: 2; }
.hero-photo-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-wave { position: relative; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; display: block; }
.hero-wave path { fill: #eef9f2; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Features ---------- */
.features { padding-top: 70px; }
.feature-card { padding: 32px; transition: transform .3s; }
.feature-card:hover { transform: translateY(-8px); }
.feature-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
.f-green { background: var(--brand-50); color: var(--brand-600); }
.f-orange { background: #fff7ed; color: var(--accent-600); }
.f-blue { background: #f0f9ff; color: #0284c7; }
.feature-card h3 { font-size: 20px; }
.feature-card p { color: var(--ink-500); margin: 12px 0 0; }

/* ---------- About / Mission ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual, .mission-visual { position: relative; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-img { display: block; width: 100%; border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-card); }
.about-img.a2 { margin-top: 40px; }
.about-badge, .mission-badge { position: absolute; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-card); }
.about-badge { bottom: 12px; left: 50%; transform: translateX(-50%); }
.mission-badge { bottom: -20px; right: -10px; }
.badge-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-600); color: #fff; }
.badge-icon.orange { background: var(--accent-500); }
.about-badge strong, .mission-badge strong { display: block; font-size: 28px; color: var(--ink-900); }
.about-badge span, .mission-badge span { font-size: 13px; color: var(--ink-500); }
.about-copy h2, .mission-copy h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 14px 0 18px; }
.about-copy p { color: var(--ink-500); }
.check-list { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.donate .check-list, .single .check-list { grid-template-columns: 1fr; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-700); }
.check { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); }
.mission-img { display: block; aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-200), var(--accent-500)); box-shadow: var(--shadow-card); }

/* tabs */
.tabs { margin-top: 26px; }
.tab-buttons { display: flex; gap: 8px; background: var(--brand-50); padding: 6px; border-radius: 999px; }
.tab-btn { flex: 1; border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-700); cursor: pointer; font-family: inherit; transition: all .2s; }
.tab-btn.is-active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-soft); }
.tab-panel { display: none; margin-top: 24px; }
.tab-panel.is-active { display: block; }
.tab-panel h3 { font-size: 20px; }
.tab-panel p { color: var(--ink-500); margin-top: 12px; }

/* ---------- Stats ---------- */
.stats { background: var(--brand-800); color: #fff; padding: 64px 0; }
.stat { text-align: center; }
.stat-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1); color: var(--brand-200); margin-bottom: 16px; }
.stat strong { display: block; font-size: 38px; }
.stat span { color: var(--brand-200); font-size: 14px; }

/* ---------- Causes ---------- */
.causes { background: rgba(236,253,245,.5); }
.cause-card { overflow: hidden; display: flex; flex-direction: column; }
.cause-media { position: relative; height: 180px; }
.cause-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cause-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--ink-700); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.cause-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.cause-body h3 { font-size: 19px; }
.cause-body > p { color: var(--ink-500); font-size: 14px; margin: 10px 0 18px; }
.cause-body .progress { margin-top: auto; }
.cause-stats { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-top: 14px; }
.cause-stats .pct { font-weight: 700; color: var(--brand-600); }
.cause-goal { font-size: 12px; color: var(--ink-400); margin: 4px 0 18px; }

/* ---------- Video CTA ---------- */
.video-cta { background: linear-gradient(135deg, var(--ink-900), var(--brand-900)); color: #fff; padding: 96px 0; text-align: center; }
.video-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); max-width: 640px; margin: 16px auto 0; }
.play-btn { position: relative; display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--accent-500); color: #fff; margin: 40px auto; transition: transform .2s; }
.play-btn:hover { transform: scale(1.08); }
.play-ping { position: absolute; inset: 0; border-radius: 50%; background: rgba(249,115,22,.4); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Works ---------- */
.work-card { position: relative; display: grid; place-items: center; height: 256px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); color: #fff; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-ico { opacity: .9; }
.work-overlay { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(to top, rgba(15,36,23,.85), transparent); transform: translateY(8px); opacity: 0; transition: all .3s; }
.work-card:hover .work-overlay { transform: translateY(0); opacity: 1; }
.work-overlay small { color: var(--brand-200); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.work-overlay strong { display: flex; align-items: center; gap: 6px; font-size: 18px; margin-top: 4px; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.donate-copy h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 14px 0 18px; }
.donate-copy p { color: var(--ink-500); }
.donate-card { padding: 32px; }
.seg { display: flex; gap: 8px; background: var(--brand-50); padding: 6px; border-radius: 999px; }
.seg-btn { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-700); cursor: pointer; font-family: inherit; }
.seg-btn.is-active { background: var(--brand-600); color: #fff; }
.form-label { font-size: 14px; font-weight: 600; color: var(--ink-700); margin: 22px 0 12px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.amount-btn { border: 1px solid var(--line); background: #fff; padding: 12px 0; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink-700); cursor: pointer; font-family: inherit; transition: all .2s; }
.amount-btn.is-active, .amount-btn:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--brand-300); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
textarea.input { resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-400); text-align: center; margin: 12px 0 0; }

/* ---------- Events ---------- */
.events-list { display: flex; flex-direction: column; gap: 18px; }
.event-row { display: flex; align-items: center; gap: 24px; padding: 22px; }
.event-date { display: grid; place-content: center; text-align: center; width: 92px; height: 92px; flex: 0 0 auto; border-radius: 18px; background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); color: #fff; }
.event-date strong { font-size: 30px; line-height: 1; }
.event-date span { font-size: 13px; text-transform: uppercase; font-weight: 600; }
.event-body { flex: 1; }
.event-body h3 { font-size: 19px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; font-size: 14px; color: var(--ink-500); }
.event-meta span { display: inline-flex; align-items: center; gap: 8px; }
.event-meta svg { color: var(--brand-600); }

/* ---------- Testimonials ---------- */
.testimonials { background: rgba(236,253,245,.5); }
.testimonial { padding: 32px; }
.t-quote { color: var(--brand-100); }
.stars { display: flex; gap: 3px; color: var(--accent-500); margin: 10px 0 14px; }
.testimonial blockquote { margin: 0; color: var(--ink-700); font-size: 15px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-avatar-ph { background: linear-gradient(135deg, var(--brand-300), var(--accent-500)); }
.testimonial figcaption strong { display: block; color: var(--ink-900); }
.testimonial figcaption small { color: var(--ink-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-grid h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 14px 0 18px; }
.contact-grid > div > p { color: var(--ink-500); }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 16px; background: rgba(236,253,245,.7); border-radius: 18px; padding: 16px; }
.ci-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-600); color: #fff; }
.contact-item small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); }
.contact-item strong { color: var(--ink-900); }
.contact-form-card { padding: 32px; }
.contact-form .form-row { margin: 0 0 12px; }
.contact-form .input { margin-bottom: 12px; }

/* ---------- Blog ---------- */
.blog { background: #eef9f2; }
.blog-card { overflow: hidden; }
.blog-media { position: relative; display: block; height: 190px; }
.blog-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-cat { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--ink-700); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.blog-body { padding: 24px; }
.blog-date { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-400); margin: 0 0 12px; }
.blog-body h3 { font-size: 18px; line-height: 1.35; }
.blog-body > p { color: var(--ink-500); font-size: 14px; margin: 10px 0 0; }

/* ---------- Newsletter ---------- */
.newsletter-wrap { padding: 70px 0 80px; }
.newsletter { position: relative; overflow: hidden; border-radius: 36px; padding: 56px; color: #fff; box-shadow: var(--shadow-soft); background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); margin: 12px 0; }
.newsletter p { color: rgba(209,250,229,.8); margin: 0; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form .input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 15px 24px; }
.newsletter-form .input::placeholder { color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(209,250,229,.8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding: 64px 20px; }
.footer-about { font-size: 14px; margin: 16px 0; max-width: 280px; }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand-600); }
.footer-title { color: #fff; font-size: 16px; margin: 0 0 16px; }
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-menu a:hover { color: var(--brand-300); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { color: var(--brand-300); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; }
.heart-inline { color: var(--accent-500); display: inline-flex; vertical-align: middle; }

/* ---------- Inner pages ---------- */
.inner-page { padding-top: 100px; }
.page-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; }
.single { padding-top: 100px; }
.single-head { text-align: center; margin-bottom: 30px; }
.single-head h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; }
.single-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-400); font-size: 14px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.single-progress { background: var(--brand-50); border-radius: var(--radius); padding: 24px; margin-bottom: 30px; }
.single-progress .btn { margin-top: 18px; }
.single-content { font-size: 17px; color: var(--ink-700); }
.single-content p { margin: 0 0 20px; }
.single-content h2, .single-content h3 { margin: 30px 0 14px; }
.single-content img { border-radius: 16px; margin: 20px 0; }
.single-back { margin-top: 40px; }
.pagination { margin-top: 50px; text-align: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-700); font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.error-404 .error-big { font-size: 120px; font-weight: 800; color: var(--brand-200); line-height: 1; }
.error-404 h1 { margin: 10px 0; }
.error-404 p { color: var(--ink-500); margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.header-phone, .header-actions .btn-accent { display: none; }
	.primary-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; box-shadow: var(--shadow-soft); transform: translateY(-130%); transition: transform .3s; max-height: calc(100vh - 72px); overflow: auto; }
	.primary-nav.is-open { transform: translateY(0); }
	.primary-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 12px; }
	.primary-nav .nav-menu a { display: block; padding: 14px; border-radius: 10px; color: var(--ink-900) !important; }
	.primary-nav .nav-menu a:hover { background: var(--brand-50); }
	.hero-inner, .about-grid, .donate-grid, .contact-grid, .newsletter { grid-template-columns: 1fr; }
	/* Mobile hero order: title -> description -> image -> buttons */
	.hero-inner { display: flex; flex-direction: column; }
	.hero-copy { display: contents; }
	.hero-copy .eyebrow { order: 1; }
	.hero-title { order: 2; }
	.hero-text { order: 3; }
	.hero-visual { order: 4; margin: 8px 0 2px; }
	.hero-actions { order: 5; }
	.hero-meta, .hero-tags { order: 6; }
	.grid-3 { grid-template-columns: 1fr 1fr; }
	.about-img.a2 { margin-top: 0; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.section { padding: 60px 0; }
	.grid-3, .grid-4 { grid-template-columns: 1fr; }
	.check-list { grid-template-columns: 1fr; }
	.event-row { flex-direction: column; align-items: flex-start; }
	.newsletter { padding: 36px 24px; }
	.newsletter-form { flex-direction: column; }
	.footer-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
}

/* ===========================================================
   CIFOURS — foundation profile sections (added)
   =========================================================== */

/* Hero tweaks */
.hero-logo { max-width: 220px; margin: 0 auto 18px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.15)); background: #fff; padding: 18px 22px; border-radius: 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tag { font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 7px 16px; border-radius: 999px; }
.hero-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); }
.hero-card-float strong { display: block; color: var(--brand-700); font-size: 16px; margin: 4px 0 6px; }
.hero-card-float p { font-size: 12px; color: var(--ink-500); margin: 0; }

/* Pillars (smaller feature cards) */
.feature-card-sm { padding: 26px; }
.feature-card-sm h3 { font-size: 18px; }
.feature-card-sm p { font-size: 14px; }
.f-teal { background: #ecfeff; color: #0d9488; }

.legal-note { margin-top: 22px; padding: 16px 18px; background: var(--brand-50); border-left: 3px solid var(--brand-500); border-radius: 12px; font-size: 13px; color: var(--ink-600, #3f5246); display: flex; gap: 10px; }
.legal-note svg { color: var(--brand-600); flex: 0 0 auto; margin-top: 2px; }

/* Vision band — flat full-width dark green (no inner card) */
.vision { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; }
.vision-card { text-align: center; max-width: 900px; margin: 0 auto; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.vision-statement { max-width: 880px; margin: 18px auto 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.6; color: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.value-letter { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.value-item strong { display: block; color: var(--ink-900); font-size: 15px; }
.value-item span { font-size: 13px; color: var(--ink-500); }

/* Missions */
.missions-grid .mission-item { padding: 28px; }
.mission-item { display: flex; flex-direction: column; }
.mission-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.mission-item h3 { font-size: 18px; }
.mission-item p { color: var(--ink-500); font-size: 14px; margin-top: 10px; }

/* Programs */
.programs { background: var(--brand-50); }
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.program-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.program-media { position: relative; height: 210px; flex: 0 0 auto; }
.program-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.program-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,23,.5), transparent 55%); }
.program-letter-float { position: absolute; z-index: 1; left: 16px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 22px; color: #fff; background: var(--brand-600); box-shadow: var(--shadow-soft); }
.program-body { padding: 22px 26px 26px; }
.program-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.program-letter { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px; font-weight: 800; font-size: 24px; color: #fff; background: var(--brand-600); }
.program-letter.program-letter-float { background: var(--brand-600); }
.program-head h3 { font-size: 19px; }
.program-head p { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.program-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.program-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-700); }
.program-list svg { color: var(--brand-600); flex: 0 0 auto; margin-top: 3px; }

/* Team / Manajemen */
.team-group { text-align: center; font-size: 20px; color: var(--ink-900); margin: 40px 0 22px; }
.team-group:first-of-type { margin-top: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { padding: 26px; text-align: center; }
.team-photo { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--brand-200), var(--brand-400)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-ph { font-weight: 800; font-size: 32px; color: #fff; }
.team-card strong { display: block; color: var(--ink-900); font-size: 17px; }
.team-card small { display: block; color: var(--brand-600); font-weight: 600; font-size: 13px; margin: 4px 0 12px; }
.team-card p { font-size: 13px; color: var(--ink-500); margin: 0; }

.video-sub { max-width: 640px; margin: 14px auto 0; color: rgba(209,250,229,.85); }

@media (max-width: 1024px) {
	.values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.programs-grid { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: 1fr 1fr; }
	.missions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.values-grid, .team-grid, .missions-grid { grid-template-columns: 1fr; }
	.vision-card { padding: 32px 22px; }
}

/* Custom logo (uploaded brand mark) sizing + legibility on dark hero */
.site-header .custom-logo-link { display: inline-block; line-height: 0; }
.site-header .custom-logo { height: 48px !important; width: auto !important; max-width: 160px; display: block; }
.site-header.is-scrolled .custom-logo { height: 44px !important; }

/* ===========================================================
   Misi accordion (image left + accordion right)
   =========================================================== */
.misi-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: stretch; }
.misi-image { position: relative; border-radius: var(--radius); background-size: cover; background-position: center; min-height: 440px; box-shadow: var(--shadow-card); overflow: hidden; }
.misi-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,78,59,.55), rgba(6,78,59,0) 55%); }
.misi-image-tag { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); color: var(--ink-800); font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.misi-image-tag svg { color: var(--brand-600); }

.misi-accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.acc-item.is-open { border-color: var(--brand-300); box-shadow: var(--shadow-card); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.acc-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); transition: background .2s, color .2s; }
.acc-item.is-open .acc-ico { background: var(--brand-600); color: #fff; }
.acc-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--ink-900); }
.acc-toggle { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.acc-toggle::before, .acc-toggle::after { content: ""; position: absolute; background: var(--brand-600); border-radius: 2px; transition: transform .25s, opacity .2s; }
.acc-toggle::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc-toggle::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc-item.is-open .acc-toggle::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.is-open .acc-body { max-height: 240px; }
.acc-body-inner { padding: 0 20px 20px 74px; }
.acc-body-inner p { margin: 0; color: var(--ink-500); font-size: 14px; }

/* ===========================================================
   Programs — single auto-scrolling looping row (marquee)
   =========================================================== */
.programs-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.programs-track { display: flex; width: max-content; animation: cifours-marquee 70s linear infinite; }
.programs-marquee:hover .programs-track { animation-play-state: paused; }
.programs-track .program-card { flex: 0 0 360px; width: 360px; margin-right: 24px; }
@keyframes cifours-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .programs-track { animation: none; } .programs-marquee { overflow-x: auto; } }

@media (max-width: 900px) {
	.misi-layout { grid-template-columns: 1fr; }
	.misi-image { min-height: 280px; }
	.acc-body-inner { padding-left: 20px; }
	.programs-track .program-card { flex-basis: 300px; width: 300px; }
}

/* ===========================================================
   Single post: layout + share + sidebar + comments
   =========================================================== */
.single-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.single-main { min-width: 0; }
.single-head-left { text-align: left; margin-bottom: 26px; }
.single-cat { display: inline-block; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.single-head-left h1 { font-size: clamp(26px, 3.4vw, 40px); }
.single-head-left .single-meta { justify-content: flex-start; margin-top: 14px; }

/* Share bar */
.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0; padding: 16px 22px; background: var(--brand-50); border-radius: 16px; }
.share-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-700); font-size: 14px; }
.share-btns { display: flex; gap: 10px; }
.share-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; transition: transform .2s; }
.share-btn:hover { transform: translateY(-2px); }
.s-fb { background: #1877f2; } .s-x { background: #0f1419; } .s-wa { background: #25d366; } .s-copy { background: var(--brand-600); }
.share-btn.copied { background: var(--brand-800); }

/* Sidebar */
.single-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-card); }
.sidebar-title { font-size: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-posts a { display: flex; gap: 12px; align-items: center; }
.mini-thumb { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: var(--brand-100); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-meta strong { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-900); font-weight: 600; transition: color .2s; }
.mini-posts a:hover .mini-meta strong { color: var(--brand-600); }
.mini-meta small { color: var(--ink-400); font-size: 12px; }
.sidebar-cta { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; border: 0; }
.sidebar-cta h3 { color: #fff; font-size: 18px; }
.sidebar-cta p { color: rgba(209,250,229,.85); font-size: 14px; margin: 10px 0 18px; }

/* Comments */
.comments { margin-top: 50px; }
.comments-title { font-size: 22px; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0 0 36px; padding: 0; }
.comment-list .children { list-style: none; margin: 18px 0 0 32px; padding: 0; }
.comment-body { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 18px; background: #fff; }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--ink-900); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--ink-400); margin-top: 2px; }
.comment-metadata a { color: var(--ink-400); }
.comment-content { margin-top: 12px; color: var(--ink-700); font-size: 15px; }
.comment-content p { margin: 0 0 10px; }
.comment .reply { margin-top: 6px; }
.comment-reply-link { font-size: 13px; font-weight: 600; color: var(--brand-600); }
.comment-awaiting-moderation { font-size: 13px; color: var(--accent-600); }

/* Comment form ("Tinggalkan Balasan") */
.comment-respond { margin-top: 8px; }
.comment-form.card { padding: 28px; }
.comment-reply-title { font-size: 20px; margin-bottom: 6px; }
.comment-reply-title small { font-weight: 500; font-size: 14px; margin-left: 10px; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--ink-400); margin-bottom: 18px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form .input { margin-bottom: 14px; }
.comment-form-comment textarea.input { resize: vertical; }
.comment-form .form-submit { margin: 4px 0 0; }

/* ===========================================================
   Contact Form 7 styling (homepage Kontak)
   =========================================================== */
.contact-form-card .wpcf7-form .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; margin-bottom: 12px; background: #fff; }
.contact-form-card .wpcf7-form input:focus,
.contact-form-card .wpcf7-form textarea:focus { border-color: var(--brand-300); }
.contact-form-card .wpcf7-form .wpcf7-form-control-wrap { display: block; }
.contact-form-card .wpcf7-form .btn { margin-top: 4px; }
.contact-form-card .wpcf7-spinner { margin: 10px auto 0; display: block; }
.wpcf7-response-output { border-radius: 10px; padding: 10px 14px !important; margin: 14px 0 0 !important; font-size: 13px; }

@media (max-width: 900px) {
	.single-layout { grid-template-columns: 1fr; }
	.single-sidebar { position: static; }
	.comment-form-row { grid-template-columns: 1fr; }
	.contact-form-card .wpcf7-form .cf7-row { grid-template-columns: 1fr; }
}

/* Inner pages (no dark hero): solid white navbar so it's clearly separated from content */
body:not(.home) .site-header { background: rgba(255,255,255,.97); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body:not(.home) .site-header::before { opacity: 0; }


/* ===========================================================
   Galeri Kegiatan — auto-scrolling strip + lightbox
   =========================================================== */
.gallery-marquee { overflow: hidden; margin-top: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.gallery-track { display: flex; width: max-content; animation: cifours-marquee 90s linear infinite; }
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
.gallery-item { position: relative; flex: 0 0 auto; width: 280px; height: 190px; margin-right: 16px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--brand-100); box-shadow: var(--shadow-card); transition: transform .25s; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,36,23,.3), transparent 55%); opacity: 0; transition: opacity .25s; }
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8,20,12,.93); padding: 30px; }
.lightbox.is-open { display: flex; }
.lb-figure { margin: 0; max-width: 1100px; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-figure figcaption { color: #fff; margin-top: 14px; font-size: 14px; opacity: .9; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 24px; right: 24px; font-size: 30px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.gallery-item { width: 220px; height: 150px; }
	.lb-prev, .lb-next { width: 40px; height: 40px; }
	.lb-prev { left: 10px; } .lb-next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-track { animation: none; } .gallery-marquee { overflow-x: auto; } }
