/* Puspa Peduli Alam - tampilan publik */
:root {
  --green-900: #0f3d2e;
  --green-700: #1d6b4f;
  --green-600: #23845f;
  --green-500: #2fa374;
  --green-100: #e5f4ec;
  --sand: #f7f5ef;
  --ink: #1d2a24;
  --muted: #5f6f67;
  --line: #dfe7e2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 61, 46, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-900); font-size: 1.1rem; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a.active, .nav a:hover { color: var(--green-600); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--green-900); cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .15s ease; font-family: inherit;
}
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); color: var(--white); }
.btn-outline { border-color: var(--green-600); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-100); }
.btn-light { background: var(--white); color: var(--green-900); }
.btn-light:hover { background: var(--green-100); color: var(--green-900); }
.btn-google { background: var(--white); color: #3c4043; border: 1px solid #dadce0; border-radius: 8px; width: 100%; padding: 12px 18px; }
.btn-google:hover { background: #f7f8f8; color: #202124; }
.btn-google svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.hero .container { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.15; margin: 0 0 16px; max-width: 720px; }
.hero p { font-size: 1.15rem; max-width: 620px; opacity: .92; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green-500); margin-bottom: 8px; }
.hero .eyebrow { color: #bdf0d5; }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; color: var(--green-900); line-height: 1.25; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .section-lead { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; color: var(--green-900); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; color: var(--green-700); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

.about { align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; background: var(--green-100); min-height: 300px; display: grid; place-items: center; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* Posts */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/9; background: var(--green-100) center/cover no-repeat; display: grid; place-items: center; color: var(--green-600); font-size: 2.2rem; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--green-600); }
.post-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .78rem; font-weight: 700; }
.chip:hover { background: var(--green-600); color: var(--white); }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article { background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin: 10px 0 14px; color: var(--green-900); }
.article .cover { border-radius: 10px; margin: 24px 0; width: 100%; }
.content { font-size: 1.05rem; overflow-wrap: anywhere; }
.content img { border-radius: 8px; margin: 16px 0; }
.content h2, .content h3 { color: var(--green-900); line-height: 1.3; }
.content blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--green-500); background: var(--green-100); border-radius: 0 8px 8px 0; }
.content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 8px; }
.content pre { background: #10261d; color: #e8f5ee; padding: 16px; border-radius: 8px; overflow-x: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar .card { padding: 22px; margin-bottom: 20px; }
.sidebar h4 { margin: 0 0 12px; color: var(--green-900); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: 0; }

.page-banner { background: linear-gradient(135deg, var(--green-900), var(--green-600)); color: var(--white); padding: 56px 0; }
.page-banner h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-banner p { margin: 8px 0 0; opacity: .9; }

.search { display: flex; gap: 8px; }
.search input, .form-control {
  flex: 1; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--white); color: var(--ink);
}
.search input:focus, .form-control:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: transparent; }

/* Pagination (Laravel bootstrap-4 markup) */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; justify-content: center; margin: 40px 0 0; }
.pagination .page-link { display: block; padding: 8px 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.pagination .active .page-link { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.pagination .disabled .page-link { opacity: .5; }

/* Auth / account */
.auth-box { max-width: 440px; margin: 64px auto; }
.auth-box .card { padding: 36px; text-align: center; }
.auth-box h1 { margin: 0 0 8px; color: var(--green-900); font-size: 1.6rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--green-100); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; text-align: left; }
.alert-success { background: var(--green-100); color: var(--green-900); }
.alert-danger { background: #fde8e8; color: #8a1c1c; }
label { font-weight: 600; display: block; margin-bottom: 6px; text-align: left; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }

/* CTA & footer */
.cta { background: var(--green-700); color: var(--white); border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .9; }
.site-footer { background: var(--green-900); color: #cfe6da; padding: 52px 0 24px; margin-top: 72px; }
.site-footer a { color: #e7f6ee; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; text-align: center; }

/* Daftarkan Lembaga & kartu status */
.form-card { padding: 32px; }
.form-section { margin: 28px 0 14px; font-size: .85rem; color: var(--green-700); text-transform: uppercase; letter-spacing: .1em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: .85rem; color: #8a1c1c; margin-top: 4px; }
.req { color: #c0392b; }
textarea.form-control { resize: vertical; min-height: 96px; }
select.form-control:disabled { background: #f3f5f4; color: var(--muted); }
.status-card { text-align: left; border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--white); margin: 0 0 18px; }
.status-card h3 { margin: 6px 0 6px; color: var(--green-900); font-size: 1.1rem; }
.status-card p { margin: 0 0 4px; color: var(--muted); }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--line); color: var(--ink); }
.status-pending { background: #fff8e6; border-color: #f3dfa5; }
.status-pending .status-badge { background: #f6e3a8; color: #6b4e00; }
.status-approved { background: var(--green-100); border-color: #bfe3cf; }
.status-approved .status-badge { background: var(--green-600); color: var(--white); }
.status-rejected { background: #fdeeee; border-color: #f2c4c4; }
.status-rejected .status-badge { background: #e9b3b3; color: #6d1414; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-wrap { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
  .grid-3, .grid-2, .stats, .site-footer .grid { grid-template-columns: 1fr; }
  .stats { margin-top: -32px; }
  .section { padding: 52px 0; }
  .hero .container { padding-top: 64px; padding-bottom: 80px; }
  .article { padding: 22px; }
  .cta { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}

/* Halaman login */
.auth-split { background: linear-gradient(135deg, var(--green-900), var(--green-600)); padding: 56px 0; }
.auth-split-inner { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.auth-aside { color: var(--white); }
.auth-aside .eyebrow { color: #bdf0d5; }
.auth-aside h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 14px; }
.auth-aside p { opacity: .92; max-width: 460px; margin: 0 0 22px; font-size: 1.05rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-points i { color: #bdf0d5; margin-right: 8px; }
.auth-card { padding: 32px; }
.auth-logo { max-width: 150px; margin: 0 auto 14px; }
.auth-card h2 { text-align: center; margin: 0 0 20px; color: var(--green-900); font-size: 1.35rem; }
.auth-form .field { margin-bottom: 16px; }
.field-error { color: #8a1c1c; font-size: .85rem; margin: 6px 0 0; text-align: left; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 44px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; }
.password-toggle:hover { color: var(--green-700); }
.btn-block { width: 100%; }
.auth-hint { color: var(--muted); font-size: .85rem; text-align: center; margin: 12px 0 0; }
.auth-foot { text-align: center; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 900px) {
  .auth-split-inner { grid-template-columns: 1fr; gap: 28px; }
  .auth-aside { text-align: center; }
  .auth-aside p { margin-left: auto; margin-right: auto; }
  .auth-points { justify-items: center; }
}
@media (max-width: 640px) {
  .auth-split { padding: 28px 0; }
  .auth-aside .auth-points { display: none; }
  .auth-card { padding: 22px; }
}
