/*
 * Mirrors the Laravel cloud theme "desain" (Tailwind build) so returning
 * visitors see the same site: Poppins headings, Open Sans body, max-w-5xl
 * container, 7/3 grid, brand color rgb(231 111 81).
 */
:root {
  --primary: #e76f51;       /* --color-primary: 231 111 81 */
  --copy: #5d6674;          /* --color-text-copy: 93 102 116 */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --slate: #f1f5f9;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
}

*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { margin: 0; background: #fff; color: var(--copy); font-family: "Open Sans", sans-serif; }
h1, h2, h3, h4 { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; margin: 0; }

.container { max-width: 64rem; margin: 0 auto; }

/* ---- header ---- */
.site-header { background: #fff; font-family: Poppins, sans-serif; }
.site-header .top { box-shadow: 0 1px 2px rgba(0,0,0,.05); border-bottom: 1px solid var(--border-light); padding: 0 .5rem; }
.top-inner { display: flex; align-items: center; }
.brand { display: inline-block; padding: .5rem; }
.brand h4 { font-size: 1rem; }
.search { position: relative; display: flex; margin-left: auto; padding: .5rem 0; }
.search input { width: 100%; max-width: 14rem; border: 1px solid var(--border); border-radius: 9999px; padding: .5rem 3rem .5rem 1rem; font-size: .875rem; font-family: Poppins, sans-serif; outline: none; }
.search button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 100%; padding: 0 1rem; background: none; cursor: pointer; color: #1e40af; }
.search button:hover { color: var(--primary); }
.search svg { width: 1.25rem; height: 1.25rem; }
.nav { font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.05); border-bottom: 1px solid var(--border); }
.nav ul { display: flex; align-items: center; overflow-x: auto; white-space: nowrap; }
.nav a { display: inline-block; padding: .75rem; }
.nav li:hover { color: var(--primary); }
@media (min-width: 768px) { .brand { padding: 1rem .5rem; } }

/* ---- page grid (col-span-7 / col-span-3) ---- */
.grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: 1.5rem; }
.main { grid-column: span 10 / span 10; padding: 1.25rem .75rem; }
.side { grid-column: span 10 / span 10; padding: .75rem; }
@media (min-width: 768px) {
  .main { grid-column: span 7 / span 7; }
  .side { grid-column: span 3 / span 3; }
}

/* ---- breadcrumb ---- */
.crumb { display: flex; align-items: center; background: var(--slate); width: min-content; border-radius: .5rem; }
.crumb .home { border-radius: .5rem; background: #fff; padding: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); color: var(--primary); }
.crumb .home svg { width: 1.5rem; height: 1.5rem; }
.crumb .cat { font-weight: 700; padding: 0 1.25rem; white-space: nowrap; }
.crumb .cat:hover { color: var(--primary); }

/* ---- post header ---- */
.post-title { margin-top: 2rem; font-weight: 700; font-size: 1.125rem; line-height: 2.5rem; text-align: center; }
@media (min-width: 640px) { .post-title { font-size: 1.25rem; } }
@media (min-width: 768px) { .post-title { font-size: 1.875rem; } }
.post-meta { margin-top: 1rem; text-align: center; }
.share { display: flex; align-items: center; justify-content: center; padding: 0 .5rem; margin-top: 1rem; }
.share img { box-sizing: content-box; width: 2rem; margin-left: .5rem; border: 2px solid #fff; border-radius: 9999px; }
.share img:hover { border-color: var(--primary); }
.cover { width: 100%; border-radius: .375rem; margin-top: 2rem; }
figcaption { text-align: center; font-size: .75rem; margin-top: 1rem; }
@media (min-width: 768px) { figcaption { font-size: .875rem; } }

/* ---- table of contents ---- */
.toc { margin-top: 2rem; }
.toc a, .toc button { color: var(--primary); font-weight: 700; background: none; cursor: pointer; padding: 0; }
.toc a:hover, .toc button:hover { color: var(--copy); }
.toc ol { margin-top: 1rem; padding-left: 1rem; list-style: decimal; }
.toc li { margin: .25rem 0; }
.toc li.sub { margin-left: 1rem; list-style: circle; }

/* ---- article body (theme rules for "article") ---- */
article.ct { margin-top: 1rem; overflow-wrap: anywhere; }
article.ct p { margin: 1.5rem 0; text-align: start; font-family: Poppins, sans-serif; font-size: 19px; line-height: 1.5rem; }
article.ct h2 { margin: 1.25rem 0 1rem; font-family: Poppins, sans-serif; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
article.ct h3 { margin: 1rem 0; font-family: Poppins, sans-serif; font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
article.ct h1 { margin: 1.25rem 0 1rem; font-family: Poppins, sans-serif; font-size: 1.75rem; line-height: 2.25rem; font-weight: 700; }
article.ct a { color: var(--primary); }
article.ct a:hover { color: var(--copy); }
article.ct ul { list-style: disc; padding-left: 1.5rem; }
article.ct ol { list-style: decimal; padding-left: 1.5rem; }
article.ct li { margin: .5rem 0; font-family: Poppins, sans-serif; }
article.ct img { border-radius: .375rem; margin: 1rem auto; }
article.ct table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
article.ct td, article.ct th { border: 1px solid var(--border); padding: .5rem; }

.ad-slot { margin: 1rem 0; text-align: center; overflow: hidden; clear: both; }

/* ---- section headings with the brand bar ("Artikel Lainnya", "Most Popular") ---- */
.section-title { margin-top: 2rem; font-family: Poppins, sans-serif; font-weight: 600; font-size: 1.125rem; display: flex; align-items: center; white-space: nowrap; }
.section-title::after { content: ""; display: inline-block; margin-left: 1rem; width: 3.5rem; height: .25rem; background: var(--primary); border-radius: .5rem; }
@media (min-width: 640px) { .section-title { font-size: 1.5rem; } .section-title::after { width: 8rem; } }
.side .section-title { font-size: 1.125rem; }
@media (min-width: 640px) { .side .section-title { font-size: 1.25rem; } }

/* related list */
.related-item { margin-top: 1.5rem; padding-bottom: 1rem; display: flex; align-items: center; border-bottom-width: 1px; }
.related-item .thumb { flex-shrink: 0; }
.related-item .thumb img, .related-item .thumb span { object-fit: cover; width: 6rem; height: 6rem; border-radius: .5rem; background: var(--slate); display: block; }
.related-item .text { display: flex; flex-direction: column; margin-left: 1rem; font-family: Poppins, sans-serif; }
.related-item h4 { font-weight: 600; }
.related-item h2 { font-size: .875rem; font-weight: 700; margin-top: .5rem; }
.related-item h2:hover { color: var(--primary); }
@media (min-width: 640px) {
  .related-item .thumb img, .related-item .thumb span { width: 12rem; height: 7rem; }
  .related-item h2 { font-size: 1.125rem; }
}

/* popular sidebar */
.popular li { display: flex; flex-direction: column; border-bottom-width: 1px; padding: .5rem; }
.popular li:last-child { border: 0; padding-bottom: 0; }
.popular a { padding: .5rem 0; }
.popular img { width: 100%; border-radius: .375rem; }
.popular h3 { margin-top: .5rem; font-size: .875rem; font-weight: 600; font-family: Poppins, sans-serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular h3:hover { color: var(--primary); }

/* listing pages (home, category, search) */
.listing h1 { margin-top: 1rem; font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.5rem; }
.listing .empty { margin-top: 1.5rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; }
.pager a { padding: .5rem 1rem; border-radius: .375rem; background: var(--gray-300); font-weight: 700; }
.pager a[rel=next] { margin-left: auto; }

/* ---- ad positions and step buttons (Laravel show.blade.php / partials/page0) ---- */
/* An AdSense slot with no ad keeps a transparent 0x0 <ins> whose iframe
   still overflows over the step buttons and swallows clicks: hide it, as
   AdSense recommends for unfilled slots. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-header { text-align: center; overflow: hidden; }
.separator { clear: both; text-align: center; }
.step-wrap { width: 100%; }
.step-area[hidden] { display: none; }
.step-count {
  display: table; margin: 1rem auto 0; padding: .25rem .75rem; border-radius: 9999px;
  background: var(--gray-300); font-family: "Open Sans", sans-serif; font-size: .875rem; font-weight: 700; line-height: 1.25rem;
}
.step-btn {
  display: inline-block; margin: 40px 0 10px; padding: 1rem 2rem;
  background: var(--primary); color: #fff;
  border: 2px solid var(--gray-300); border-radius: .5rem;
  font-family: "Open Sans", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.5rem; cursor: pointer;
}
.step-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.step-blocked { color: red; font-weight: 700; font-size: 1.17em; margin: .5rem 0; }
.step-captcha { display: flex; justify-content: center; margin-top: 1rem; }
.step-captcha[hidden] { display: none; }
/* "Continue" after the article: a 350px box with the button centered. */
.step-continue { width: 100%; margin-top: 1%; }
.step-continue .step-body { height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.step-continue .step-btn { margin-top: 1rem; }
/* The bottom area sits inside <article>: keep the article paragraph rules off it. */
article.ct .step-area p { margin: .5rem 0 0; text-align: center; font-family: "Open Sans", sans-serif; line-height: 1.5rem; }

/* main layout: sticky footer ad (option ads_floating, second page) */
.footer_stickyexp { width: fit-content; position: fixed; bottom: 0; left: 50%; transform: translate(-50%); background: #fff; text-align: center;
  box-shadow: rgb(17 58 102 / 35%) -2px -2px 2px 0; z-index: 10000; }
.close_stickyexp { display: inline-block; cursor: pointer; color: #000; padding: 2px 2px 2px 6px; font-family: Arial; font-size: 12px; position: relative;
  top: -18px; line-height: 20px; height: 20px; width: 20px; box-shadow: rgba(17,58,102,.35) -2px -2px 2px 0; border-radius: 50% 0 0; background: #fff; }
.sticky_wr { max-width: 100vw; overflow: hidden; margin: 0 auto; }

/* ---- footer ---- */
.site-footer { border-width: 2px; margin-top: 3rem; background: #fff; font-family: Poppins, sans-serif; padding: 2rem 1rem; }
.site-footer .container { padding: 0 .75rem; }
.footer-text { text-align: center; }
.footer-bottom { font-weight: 700; margin-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.footer-bottom .copy { font-size: .75rem; margin-top: .5rem; }
@media (min-width: 768px) {
  .footer-text { text-align: start; }
  .footer-bottom { flex-direction: row; }
  .footer-bottom .copy { margin-top: 0; }
}
