/*
Theme Name: IMNU
Template: generatepress
Description: Tema anak untuk Yayasan IMNU Insan Muda Nusantara (Internet Marketers Nahdlatul Ulama).
Version: 1.0.0
Text Domain: imnu
*/

:root {
	--im-green: #0f7a3a;
	--im-green-dark: #0a5428;
	--im-green-soft: #e8f4ec;
	--im-gold: #c9a227;
	--im-ink: #16231b;
	--im-muted: #5b6b61;
	--im-line: #dfe7e2;
	--im-bg: #ffffff;
	--im-bg-alt: #f6f8f6;
	--im-radius: 14px;
	--im-shadow: 0 10px 30px rgba(10, 60, 30, .08);
}

body {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--im-ink);
	background: var(--im-bg);
	font-size: 17px;
	line-height: 1.7;
}
h1, h2, h3, h4 { font-family: inherit; color: var(--im-ink); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
a { color: var(--im-green); }
a:hover { color: var(--im-green-dark); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--im-line); }
.site-header .inside-header { padding-top: 14px; padding-bottom: 14px; }
.site-header .site-logo img, .site-header .header-image { width: 84px; height: 84px; max-height: none; object-fit: contain; }
.site-header .inside-header { padding-top: 6px; padding-bottom: 6px; }
.main-title { font-size: 20px; font-weight: 800; }
.main-title a { color: var(--im-ink); }
.site-description { font-size: 13px; color: var(--im-muted); }
.main-navigation .main-nav ul li a { font-weight: 600; font-size: 15px; padding-left: 14px; padding-right: 14px; }
@media (min-width: 769px) {
	.inside-header { flex-wrap: nowrap; }
	.main-navigation .main-nav > ul { flex-wrap: nowrap; }
	.main-navigation .main-nav ul li a { white-space: nowrap; }
}
.im-act-ph { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(120deg, var(--im-green-dark), var(--im-green)); }
.im-act-ph img { width: 34%; aspect-ratio: 1; object-fit: contain; }
.main-navigation .main-nav ul li.im-nav-cta > a {
	background: var(--im-green); color: #fff !important; border-radius: 999px;
	line-height: 40px; padding: 0 20px; margin: 10px 0 10px 8px;
}
.main-navigation .main-nav ul li.im-nav-cta > a:hover { background: var(--im-green-dark); }

/* ---------- Full-width page building blocks ---------- */
.im-page .entry-content > *:first-child { margin-top: 0; }
.im-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.im-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.im-section { padding: 80px 0; }
.im-section--alt { background: var(--im-bg-alt); }
.im-section--green { background: var(--im-green); color: #eaf6ee; }
.im-section--green h2, .im-section--green h3 { color: #fff; }
.im-eyebrow {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--im-green); margin-bottom: 10px;
}
.im-section--green .im-eyebrow { color: var(--im-gold); }
.im-title { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 16px; }
.im-lead { font-size: 19px; color: var(--im-muted); max-width: 720px; }
.im-section--green .im-lead { color: #d4ecdc; }
.im-center { text-align: center; }
.im-center .im-lead { margin-left: auto; margin-right: auto; }

.im-btn {
	display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
	background: var(--im-green); color: #fff; border: 2px solid var(--im-green); transition: .2s;
}
.im-btn:hover { background: var(--im-green-dark); border-color: var(--im-green-dark); color: #fff; }
.im-btn--ghost { background: transparent; color: var(--im-green); }
.im-btn--ghost:hover { background: var(--im-green); color: #fff; }
.im-btn--light { background: #fff; color: var(--im-green); border-color: #fff; }
.im-btn--light:hover { background: var(--im-gold); border-color: var(--im-gold); color: var(--im-ink); }
.im-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.im-hero {
	position: relative; color: #fff; padding: 110px 0 120px;
	background: linear-gradient(115deg, rgba(6,48,23,.94) 0%, rgba(10,84,40,.86) 45%, rgba(15,122,58,.55) 100%), var(--im-hero-img) center/cover no-repeat;
}
.im-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0 0 18px; max-width: 760px; }
.im-hero p { font-size: 20px; color: #dcefe2; max-width: 640px; margin: 0; }
.im-hero .im-eyebrow { color: var(--im-gold); }

/* ---------- Stats ---------- */
.im-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -60px; position: relative; }
.im-stat { background: #fff; border-radius: var(--im-radius); box-shadow: var(--im-shadow); padding: 26px 22px; text-align: center; border-top: 4px solid var(--im-green); }
.im-stat b { display: block; font-size: 34px; font-weight: 800; color: var(--im-green); line-height: 1.1; }
.im-stat span { font-size: 14px; color: var(--im-muted); }

/* ---------- Grids & cards ---------- */
.im-grid { display: grid; gap: 22px; }
.im-grid--2 { grid-template-columns: repeat(2, 1fr); }
.im-grid--3 { grid-template-columns: repeat(3, 1fr); }
.im-grid--4 { grid-template-columns: repeat(4, 1fr); }
.im-card {
	background: #fff; border: 1px solid var(--im-line); border-radius: var(--im-radius); padding: 28px;
	box-shadow: 0 2px 0 rgba(0,0,0,.02); height: 100%;
}
.im-card h3 { font-size: 20px; margin: 14px 0 8px; }
.im-card p { margin: 0; color: var(--im-muted); font-size: 16px; }
.im-icon {
	width: 52px; height: 52px; border-radius: 12px; background: var(--im-green-soft); color: var(--im-green);
	display: grid; place-items: center;
}
.im-icon svg { width: 26px; height: 26px; }
.im-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.im-split img, .im-photo { width: 100%; border-radius: var(--im-radius); box-shadow: var(--im-shadow); display: block; }
.im-list { list-style: none; margin: 18px 0 0; padding: 0; }
.im-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.im-list li::before {
	content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--im-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Gallery / activity cards ---------- */
.im-act { background: #fff; border-radius: var(--im-radius); overflow: hidden; border: 1px solid var(--im-line); display: flex; flex-direction: column; height: 100%; }
.im-act img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.im-act div { padding: 18px 20px 22px; }
.im-act small { color: var(--im-green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.im-act h3 { font-size: 17px; margin: 6px 0 0; line-height: 1.4; }
.im-act a { color: var(--im-ink); text-decoration: none; }
.im-act a:hover { color: var(--im-green); }

.im-act-img { display: block; overflow: hidden; }
.im-act-img img, .im-act-img .im-act-ph { transition: transform .35s ease; }
.im-act:hover .im-act-img img { transform: scale(1.04); }
.im-act { transition: box-shadow .2s, transform .2s; }
.im-act:hover { box-shadow: var(--im-shadow); transform: translateY(-2px); }
.im-act-ex { color: var(--im-muted); font-size: 15px; line-height: 1.6; margin: 10px 0 12px; }
.im-more { font-weight: 700; font-size: 14px; color: var(--im-green) !important; }
.im-act > div { display: flex; flex-direction: column; flex: 1; }
.im-act .im-more { margin-top: auto; }

/* ---------- News list ---------- */
.im-news .site-content { padding: 0; display: block; }
.im-main { width: 100%; }
.im-section--tight { padding-top: 40px; }
.im-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.im-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--im-line); background: #fff; color: var(--im-ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; transition: .2s; }
.im-chip span { background: var(--im-bg-alt); color: var(--im-muted); border-radius: 999px; padding: 0 8px; font-size: 12px; line-height: 20px; }
.im-chip:hover { border-color: var(--im-green); color: var(--im-green) !important; }
.im-chip.is-active { background: var(--im-green); border-color: var(--im-green); color: #fff !important; }
.im-chip.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.im-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--im-line); border-radius: 18px; overflow: hidden; margin-bottom: 28px; box-shadow: var(--im-shadow); }
.im-feature-img { display: block; min-height: 100%; }
.im-feature-img img, .im-feature-img .im-act-ph { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/11; }
.im-feature-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.im-feature-body small { color: var(--im-green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 12px; }
.im-feature-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0 12px; }
.im-feature-body h2 a { color: var(--im-ink); text-decoration: none; }
.im-feature-body h2 a:hover { color: var(--im-green); }
.im-feature-body p { color: var(--im-muted); margin: 0 0 22px; }
.im-badge { display: inline-block; background: var(--im-gold); color: var(--im-ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.im-badge--light { background: rgba(255,255,255,.18); color: #fff; }
.im-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.im-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--im-line); text-decoration: none; color: var(--im-ink); font-weight: 600; }
.im-pagination .page-numbers.current { background: var(--im-green); color: #fff; border-color: var(--im-green); }

/* ---------- Single post ---------- */
.im-pagehead--post { padding: 56px 0 48px; }
.im-pagehead--post h1 { font-size: clamp(28px, 3.6vw, 42px); }
.im-post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px !important; font-size: 15px !important; }
.im-article { padding: 40px 0 56px; }
.im-article-img { margin: 0 0 28px; }
.im-article-img img { width: 100%; height: auto; border-radius: var(--im-radius); display: block; box-shadow: var(--im-shadow); }
.im-article-img figcaption { font-size: 14px; color: var(--im-muted); margin-top: 10px; text-align: center; }
.im-prose { font-size: 18px; line-height: 1.8; }
.im-prose p { margin-bottom: 1.2em; }
.im-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 28px; padding: 18px 0; border-top: 1px solid var(--im-line); border-bottom: 1px solid var(--im-line); }
.im-share span { font-weight: 700; margin-right: 4px; }
.im-share a { padding: 6px 14px; border-radius: 999px; background: var(--im-green-soft); color: var(--im-green); font-weight: 600; font-size: 14px; text-decoration: none; }
.im-share a:hover { background: var(--im-green); color: #fff; }
.im-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.im-postnav small { display: block; color: var(--im-muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.im-postnav a { font-weight: 700; color: var(--im-ink); text-decoration: none; line-height: 1.4; }
.im-postnav a:hover { color: var(--im-green); }
.im-postnav-next { text-align: right; }

/* ---------- Timeline ---------- */
.im-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--im-green-soft); }
.im-timeline li { position: relative; padding: 0 0 28px 28px; }
.im-timeline li::before { content: ""; position: absolute; left: -10px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--im-green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--im-green); }
.im-timeline b { display: block; color: var(--im-green); font-size: 15px; }
.im-timeline p { margin: 2px 0 0; }

.im-split--top { align-items: start; }
.im-photostack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: 24px; }
.im-photostack figure { margin: 0; }
.im-photostack figure:first-child { grid-column: 1 / -1; }
.im-photostack img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--im-radius); box-shadow: var(--im-shadow); display: block; }
.im-photostack figcaption { font-size: 13px; color: var(--im-muted); margin-top: 8px; }
.im-person { text-align: center; }
.im-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--im-green), var(--im-green-dark)); box-shadow: 0 0 0 6px var(--im-green-soft); }
.im-person-role { color: var(--im-green) !important; font-weight: 700; font-size: 14px !important; margin: 0 0 4px !important; }
.im-search { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 8px; }
.im-search input { flex: 1; padding: 12px 16px; border: 1px solid #cdd8d1; border-radius: 999px; font: inherit; }

/* ---------- Legal table ---------- */
.im-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--im-radius); overflow: hidden; border: 1px solid var(--im-line); font-size: 16px; }
.im-table th, .im-table td { padding: 14px 18px; border-bottom: 1px solid var(--im-line); text-align: left; vertical-align: top; }
.im-table th { width: 36%; background: var(--im-bg-alt); font-weight: 700; color: var(--im-ink); }
.im-table tr:last-child th, .im-table tr:last-child td { border-bottom: 0; }
.im-note { background: var(--im-green-soft); border-left: 4px solid var(--im-green); padding: 18px 22px; border-radius: 10px; font-size: 16px; }

/* ---------- Forms (Contact Form 7) ---------- */
.im-formbox { background: #fff; border: 1px solid var(--im-line); border-radius: 18px; padding: 32px; box-shadow: var(--im-shadow); }
.im-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; color: var(--im-ink); }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=number], .wpcf7 select, .wpcf7 textarea {
	width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cdd8d1; border-radius: 10px; background: #fbfcfb; font: inherit; font-weight: 400; color: var(--im-ink);
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--im-green); box-shadow: 0 0 0 3px rgba(15,122,58,.15); background: #fff; }
.im-req { color: #c0392b; }
.im-fieldset { border: 1px solid var(--im-line); border-radius: 10px; padding: 12px 16px 6px; margin: 0 0 18px; }
.im-fieldset legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.wpcf7-checkbox { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.wpcf7-list-item { margin: 0 0 6px; }
.wpcf7-list-item label { font-weight: 400; }
.im-accept { font-size: 14px; color: var(--im-muted); }
.im-accept label { font-weight: 400; font-size: 14px; display: inline; }
.wpcf7 .wpcf7-submit.im-btn { cursor: pointer; font-size: 16px; }
.wpcf7 .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-not-valid-tip { font-size: 13px; font-weight: 400; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: 10px; margin: 8px 0 0; padding: 12px 16px; font-size: 15px; }
@media (max-width: 600px) {
	.im-formbox { padding: 22px 18px; }
	.im-form-grid, .wpcf7-checkbox { grid-template-columns: 1fr; }
	.im-postnav { grid-template-columns: 1fr; }
	.im-postnav-next { text-align: left; }
	.im-prose { font-size: 17px; }
	.im-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
	.im-chip { flex: 0 0 auto; }
}

/* ---------- Page header for inner pages ---------- */
.im-pagehead {
	--im-head-img: none;
	position: relative; color: #fff; padding: 72px 0 64px; overflow: hidden;
	background:
		radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0) 0 0/22px 22px,
		linear-gradient(100deg, rgba(6,48,23,.95) 0%, rgba(10,84,40,.82) 45%, rgba(15,122,58,.45) 100%),
		var(--im-head-img) center/cover no-repeat,
		var(--im-green-dark);
}
.im-pagehead::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(201,162,39,.14); pointer-events: none; }
.im-pagehead .im-wrap, .im-pagehead .im-narrow { position: relative; z-index: 1; }
.im-pagehead h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; }
.im-pagehead p { color: #d4ecdc; margin: 0; font-size: 18px; max-width: 720px; }
.im-crumb { font-size: 14px; color: #bfe3cb; margin-bottom: 12px; }
.im-crumb a { color: #fff; }

/* ---------- CTA band ---------- */
.im-cta { border-radius: 20px; background: linear-gradient(120deg, var(--im-green-dark), var(--im-green)); color: #fff; padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.im-cta h2 { color: #fff; margin: 0 0 6px; font-size: 30px; }
.im-cta p { margin: 0; color: #d4ecdc; }

/* ---------- Footer ---------- */
.im-footer { background: #0b2a17; color: #b9cfc0; padding: 64px 0 28px; font-size: 15px; }
.im-footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.im-footer a { color: #dcefe2; text-decoration: none; }
.im-footer a:hover { color: var(--im-gold); }
.im-footer ul { list-style: none; margin: 0; padding: 0; }
.im-footer li { margin-bottom: 8px; }
.im-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.im-footer-brand img { width: 64px; height: 64px; margin-bottom: 12px; }
.im-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.site-footer .site-info { display: none; }

/* ---------- Blog ---------- */
.blog .site-main article, .archive .site-main article, .single .site-main article .inside-article { border-radius: var(--im-radius); }
.single .entry-title { font-size: clamp(28px, 3.6vw, 40px); }
.single .entry-content { font-size: 18px; }
.single .featured-image img { border-radius: var(--im-radius); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.im-stats, .im-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.im-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.im-split { grid-template-columns: 1fr; gap: 32px; }
	.im-photostack { position: static; }
	.im-footer-grid { grid-template-columns: 1fr 1fr; }
	.im-feature { grid-template-columns: 1fr; }
	.im-feature-body { padding: 26px; }
}
@media (max-width: 768px) {
	.inside-header { flex-wrap: wrap; }
	.site-branding-container { flex: 1 1 0; min-width: 0; }
	.site-header .site-logo img, .site-header .header-image { width: 62px; height: 62px; }
	.main-title { font-size: 16px; line-height: 1.25; white-space: normal; }
	.site-description { font-size: 12px; line-height: 1.3; }
	.mobile-menu-control-wrapper .menu-toggle { background: var(--im-green-soft); color: var(--im-green); border-radius: 10px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.im-section { padding: 56px 0; }
	.im-hero { padding: 72px 0 96px; }
	.im-hero p { font-size: 17px; }
	.im-wrap, .im-narrow { padding: 0 16px; }
	.im-grid--2, .im-grid--3 { grid-template-columns: 1fr; }
	.im-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
	.im-stat { padding: 18px 12px; }
	.im-stat b { font-size: 26px; }
	.im-cta { padding: 32px 22px; }
	.im-footer-grid { grid-template-columns: 1fr; }
	.im-table th, .im-table td { display: block; width: 100%; }
	.im-table th { border-bottom: 0; padding-bottom: 4px; }
}
