/* JagoUMKM — website publik (mengikuti mockup website utama) */
:root {
  --ju-green: #087443;
  --ju-green-dark: #0b4d2c;
  --ju-green-deep: #083d24;
  --ju-green-soft: #e9f5ee;
  --ju-yellow: #ffc928;
  --ju-orange: #f39a1e;
  --ju-text: #1f2a24;
  --ju-muted: #5f6b64;
  --ju-border: #e6ece8;
  --ju-card: #ffffff;
  --ju-bg: #ffffff;
  --ju-bg-soft: #f7faf8;
  --ju-radius: 14px;
  --ju-shadow: 0 6px 24px rgba(8, 61, 36, .08);
  --bs-primary: var(--ju-green);
  --bs-primary-rgb: 8, 116, 67;
  --bs-link-color: var(--ju-green);
  --bs-link-color-rgb: 8, 116, 67;
  --bs-link-hover-color: var(--ju-green-dark);
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ju-text);
}

body { background: var(--ju-bg); color: var(--ju-text); }
h1, h2, h3, h4, h5, h6, .fw-heading { font-weight: 800; color: var(--ju-green-deep); letter-spacing: -.01em; }
.text-muted-ju { color: var(--ju-muted) !important; }
.text-green { color: var(--ju-green) !important; }
.text-orange { color: var(--ju-orange) !important; }
.bg-soft { background: var(--ju-bg-soft); }

/* Tombol */
.btn { border-radius: 8px; font-weight: 600; padding: .6rem 1.25rem; }
.btn-primary { --bs-btn-bg: var(--ju-green); --bs-btn-border-color: var(--ju-green); --bs-btn-hover-bg: var(--ju-green-dark); --bs-btn-hover-border-color: var(--ju-green-dark); --bs-btn-active-bg: var(--ju-green-deep); --bs-btn-active-border-color: var(--ju-green-deep); --bs-btn-disabled-bg: var(--ju-green); --bs-btn-disabled-border-color: var(--ju-green); }
.btn-outline-primary { --bs-btn-color: var(--ju-green); --bs-btn-border-color: var(--ju-green); --bs-btn-hover-bg: var(--ju-green); --bs-btn-hover-border-color: var(--ju-green); --bs-btn-active-bg: var(--ju-green-dark); --bs-btn-active-border-color: var(--ju-green-dark); }
.btn-yellow { background: var(--ju-yellow); color: var(--ju-green-deep); border-color: var(--ju-yellow); }
.btn-yellow:hover { background: #ffbf00; color: var(--ju-green-deep); }

/* Navbar */
.site-navbar { background: #fff; box-shadow: 0 1px 0 var(--ju-border); padding: .4rem 0; }
.site-navbar .navbar-brand img { height: 46px; width: auto; }
.site-navbar .nav-link { color: var(--ju-text); font-weight: 600; font-size: .95rem; padding: .5rem 1rem !important; position: relative; }
.site-navbar .nav-link:hover { color: var(--ju-green); }
.site-navbar .nav-link.active { color: var(--ju-green); }
.site-navbar .nav-link.active::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .1rem; height: 2px; background: var(--ju-green); border-radius: 2px; }
@media (max-width: 991.98px) { .site-navbar .nav-link.active::after { display: none; } }

/* Hero slider */
.hero-slider .carousel-item { height: clamp(220px, 34vw, 480px); background: var(--ju-green-soft); }
.hero-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .carousel-caption { left: 6%; right: auto; bottom: 12%; max-width: 520px; text-align: left; background: rgba(8, 61, 36, .72); border-radius: var(--ju-radius); padding: 1rem 1.25rem; }
.hero-slider .carousel-caption h2 { color: #fff; font-size: clamp(1.1rem, 2.2vw, 1.75rem); margin-bottom: .25rem; }
.hero-slider .carousel-caption p { margin: 0; font-size: .95rem; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 56px; opacity: 1; }
.carousel-circle-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ju-text); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--ju-shadow); font-size: 1.1rem; }
.hero-slider .carousel-control-prev .carousel-circle-btn { background: rgba(31, 42, 36, .75); color: #fff; }

/* Selamat datang */
.welcome { position: relative; overflow: hidden; padding: 2.75rem 0 1.5rem; text-align: center; }
.welcome::before, .welcome::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; opacity: .35; pointer-events: none; }
.welcome::before { left: -90px; top: 10px; background: radial-gradient(circle, #d7efe1 0%, transparent 70%); }
.welcome::after { right: -90px; top: 20px; background: radial-gradient(circle, #fff1c2 0%, transparent 70%); }
.welcome .eyebrow { font-weight: 600; color: var(--ju-green-deep); margin-bottom: .25rem; }
.welcome .welcome-logo { height: 76px; width: auto; }
.welcome h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 1rem 0 .75rem; }
.welcome .lead-text { max-width: 760px; margin: 0 auto 1.25rem; color: var(--ju-muted); }

/* Kartu fitur */
.feature-card { background: var(--ju-card); border: 1px solid var(--ju-border); border-radius: var(--ju-radius); padding: 1.5rem 1.1rem; text-align: center; height: 100%; box-shadow: 0 2px 10px rgba(8,61,36,.04); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--ju-shadow); }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; margin-bottom: .9rem; }
.feature-icon.green { background: var(--ju-green); }
.feature-icon.yellow { background: var(--ju-yellow); color: var(--ju-green-deep); }
.feature-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: var(--ju-muted); margin: 0; }

/* Satu platform */
.platform { background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--ju-bg-soft) 100%); padding: 3rem 0; }
.platform h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.check-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin-bottom: .55rem; }
.check-list i { color: var(--ju-green); font-size: 1.2rem; }
.platform-img { width: 100%; border-radius: var(--ju-radius); }

/* Section umum */
.section { padding: 3rem 0; }
.section-title { font-size: 1.5rem; margin: 0; position: relative; padding-bottom: .35rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--ju-yellow); border-radius: 3px; }
.link-more { font-weight: 600; text-decoration: none; }

/* Kartu konten (informasi, kegiatan, UMKM) */
.content-card { background: var(--ju-card); border: 1px solid var(--ju-border); border-radius: var(--ju-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.content-card:hover { box-shadow: var(--ju-shadow); transform: translateY(-2px); }
.content-card .thumb { aspect-ratio: 16 / 9; background: var(--ju-green-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ju-green); font-size: 2.2rem; }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.content-card h3 { font-size: 1rem; margin-bottom: .4rem; line-height: 1.35; }
.content-card h3 a { color: inherit; text-decoration: none; }
.content-card h3 a:hover { color: var(--ju-green); }
.content-card p { font-size: .87rem; color: var(--ju-muted); margin-bottom: .75rem; }
.content-card .meta { margin-top: auto; font-size: .8rem; color: var(--ju-muted); display: flex; align-items: center; gap: .35rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Carousel kartu informasi */
.card-carousel { position: relative; }
.card-carousel .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem; }
.card-carousel .track::-webkit-scrollbar { display: none; }
.card-carousel .track > * { scroll-snap-align: start; }
@media (max-width: 991.98px) { .card-carousel .track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 575.98px) { .card-carousel .track { grid-auto-columns: 85%; } }
.card-carousel .nav-btn { position: absolute; top: 40%; z-index: 2; border: 0; }
.card-carousel .nav-btn.prev { left: -20px; }
.card-carousel .nav-btn.next { right: -20px; }
@media (max-width: 767.98px) { .card-carousel .nav-btn { display: none; } }
.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d4ddd8; }
.carousel-dots span.active { background: var(--ju-orange); }

/* CTA banner */
.cta-banner { background: linear-gradient(90deg, #fff7d6 0%, #ffe9a3 55%, #ffd65c 100%); overflow: hidden; }
.cta-banner .cta-img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.cta-banner .cta-text { padding: 2rem 1.5rem; text-align: center; }
.cta-banner .cta-title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; font-style: italic; line-height: 1.1; color: var(--ju-green-deep); }
.cta-banner .cta-title .accent { color: var(--ju-orange); }

/* Footer */
.site-footer { background: var(--ju-green-deep); color: rgba(255,255,255,.85); padding-top: 2.5rem; font-size: .9rem; }
.site-footer .footer-logo { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--ju-yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .socials a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); margin-right: .35rem; font-size: 1rem; }
.site-footer .contact-item { display: flex; gap: .6rem; margin-bottom: .6rem; }
.site-footer .contact-item i { color: #fff; font-size: 1.05rem; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding: 1rem 0; font-size: .82rem; }

/* Halaman dalam */
.page-header { background: linear-gradient(120deg, var(--ju-green-deep), var(--ju-green)); color: #fff; padding: 2.75rem 0 2.25rem; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 201, 40, .18); }
.page-header h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .35rem; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin: 0; }
.page-header .breadcrumb a { color: #fff; }
.prose { font-size: 1rem; line-height: 1.8; color: var(--ju-text); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.filter-bar { background: #fff; border: 1px solid var(--ju-border); border-radius: var(--ju-radius); padding: 1rem; box-shadow: 0 2px 10px rgba(8,61,36,.04); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ju-muted); }
.empty-state i { font-size: 3rem; color: #c8d6ce; display: block; margin-bottom: .75rem; }
.badge-soft { background: var(--ju-green-soft); color: var(--ju-green); font-weight: 600; }
.value-card { border-left: 4px solid var(--ju-yellow); }

/* Auth */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; padding: 2.5rem 0; background: linear-gradient(160deg, var(--ju-bg-soft), #fff); }
.auth-card { background: #fff; border: 1px solid var(--ju-border); border-radius: 18px; box-shadow: var(--ju-shadow); padding: 2rem; }
.form-control, .form-select { border-radius: 8px; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--ju-green); box-shadow: 0 0 0 .2rem rgba(8, 116, 67, .15); }
.form-check-input:checked { background-color: var(--ju-green); border-color: var(--ju-green); }

/* Popup banner */
.popup-banner .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.popup-banner img { width: 100%; height: auto; display: block; }
.popup-banner .btn-close-floating { position: absolute; top: .6rem; right: .6rem; z-index: 3; background-color: rgba(255,255,255,.95); border-radius: 50%; padding: .55rem; opacity: 1; }

/* Isi dari editor HTML (Quill) */
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; line-height: 1.3; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.1rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.1em; border-left: 4px solid #71c01e; border-radius: 0 10px 10px 0; background: #f4f9ef; color: #3b4a40; }
.prose a { color: #04532b; text-decoration: underline; text-underline-offset: 2px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; } .prose .ql-indent-3 { padding-left: 6em; }
