/* CMS Berita - Public CSS */
.cmsb-wrap, .cmsb-single-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.cmsb-single-wrap { max-width: 800px; }

/* SEARCH */
.cmsb-search-bar { margin-bottom: 1.5rem; }
.cmsb-search-bar form { display: flex; gap: .5rem; }
.cmsb-search-bar input { flex: 1; padding: .65rem 1rem; border: 1px solid #e5e7eb; border-radius: 8px; font-size: .9rem; outline: none; }
.cmsb-search-bar input:focus { border-color: #e63946; }
.cmsb-search-bar button { padding: .65rem 1.25rem; background: #e63946; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* FILTER */
.cmsb-filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cmsb-kat-btn { padding: .3rem .85rem; border-radius: 20px; font-size: .78rem; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; text-decoration: none; color: #374151; transition: all .2s; }
.cmsb-kat-btn:hover, .cmsb-kat-btn.active { background: #e63946; color: #fff; border-color: #e63946; }

/* GRID */
.cmsb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.cmsb-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.cmsb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.cmsb-card-img-wrap img { width: 100%; height: 200px; object-fit: cover; display: block; }
.cmsb-no-img { height: 200px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; font-size: 2.5rem; }
.cmsb-no-img-sm { height: 120px; font-size: 1.75rem; }
.cmsb-card-body { padding: 1.1rem; }
.cmsb-kat-tag { display: inline-block; background: #e63946; color: #fff; font-size: .7rem; padding: .2rem .65rem; border-radius: 4px; margin-bottom: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; text-decoration: none; }
.cmsb-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.45; margin-bottom: .4rem; }
.cmsb-card-title a { color: #111827; text-decoration: none; }
.cmsb-card-title a:hover { color: #e63946; }
.cmsb-card-excerpt { font-size: .825rem; color: #6b7280; line-height: 1.55; margin-bottom: .65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmsb-card-meta { font-size: .75rem; color: #9ca3af; display: flex; gap: 1rem; }

/* PAGINATION */
.cmsb-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.cmsb-page-btn { padding: .4rem .85rem; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: .825rem; text-decoration: none; color: #374151; transition: all .2s; }
.cmsb-page-btn:hover, .cmsb-page-btn.active { background: #e63946; color: #fff; border-color: #e63946; }

/* EMPTY */
.cmsb-empty { text-align: center; padding: 3rem; color: #9ca3af; }
.cmsb-empty span { display: block; font-size: 3rem; margin-bottom: 1rem; }

/* SINGLE */
.cmsb-single-header { margin-bottom: 1.5rem; }
.cmsb-single-title { font-size: 2rem; font-weight: 800; line-height: 1.25; margin: .75rem 0 1rem; color: #111827; }
.cmsb-single-meta { display: flex; gap: 1.5rem; font-size: .825rem; color: #6b7280; border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; flex-wrap: wrap; }
.cmsb-single-figure { margin: 1.5rem 0; border-radius: 10px; overflow: hidden; }
.cmsb-single-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.cmsb-single-content { font-size: 1.05rem; line-height: 1.85; color: #1f2937; }
.cmsb-single-content p { margin-bottom: 1.1rem; }
.cmsb-single-content h2, .cmsb-single-content h3 { font-weight: 700; margin: 1.5rem 0 .6rem; color: #111827; }
.cmsb-single-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.cmsb-single-content blockquote { border-left: 4px solid #e63946; margin: 1.5rem 0; padding: .75rem 1.25rem; background: #fff5f5; color: #374151; font-style: italic; }

/* SHARE */
.cmsb-share-box { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: 2rem 0; padding: 1.25rem; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; }
.cmsb-share-label { font-size: .85rem; font-weight: 600; color: #374151; }
.cmsb-share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 6px; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-family: inherit; transition: opacity .2s; }
.cmsb-share-btn:hover { opacity: .85; }
.cmsb-share-wa { background: #25d366; color: #fff; }
.cmsb-share-fb { background: #1877f2; color: #fff; }
.cmsb-share-tw { background: #000; color: #fff; }
.cmsb-share-copy { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }

/* RELATED */
.cmsb-related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }
.cmsb-related-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: #111827; }
.cmsb-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cmsb-related-card { display: block; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.cmsb-related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cmsb-related-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.cmsb-related-body { padding: .75rem; }
.cmsb-related-body h4 { font-size: .875rem; font-weight: 600; line-height: 1.4; margin-bottom: .2rem; color: #111827; }
.cmsb-related-body p { font-size: .75rem; color: #9ca3af; }

/* SEO Preview di halaman preview */
.cmsb-seo-preview-info { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 1rem 1.25rem; margin: 2rem 0; }
.cmsb-seo-preview-info h4 { font-size: .85rem; font-weight: 700; color: #1d4ed8; margin-bottom: .75rem; }

@media (max-width: 640px) {
  .cmsb-single-title { font-size: 1.5rem; }
  .cmsb-grid { grid-template-columns: 1fr; }
  .cmsb-share-box { flex-direction: column; align-items: flex-start; }
}
