/* assets/style.css */
:root{
  --bg:#061526;
  --panel:#08213d;
  --primary:#0b66c3;
  --primaryDark:#073b73;
  --cyan:#2f9cff;
  --cyanSoft:#5eb4ff;
  --teal:#0b66c3;
  --gold:#ffffff;
  --cream:#ffffff;
  --yellow:#08213d;
  --yellow2:#0a73d9 !important;
  --text:#ffffff;
  --muted:#d9ecff;
  --blue:#0b66c3;
  --line:#ffffff;
  --cardShadow: 0 10px 24px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  min-height:100vh;
  position:relative;
  isolation:isolate;
  background-color:var(--bg);
  color:var(--text);
}

body::before{
  content:"";
  position:fixed;
  inset:-8px;
  z-index:0;
  pointer-events:none;
  background-image:url("https://imagestaticcontent.com/default/BERASTOGEL/BACKGROUND%20DEKSTOP%20IDUL%20ADHA%201447H_11zon.webp");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  filter:blur(3px);
  transform:scale(1.02);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:rgba(3,18,34,.62);
}

body > *{
  position:relative;
  z-index:1;
}

@media (max-width:768px){
  body::before{
    background-image:url("https://imagestaticcontent.com/default/BERASTOGEL/BACKGROUND%20MOBILE%20IDUL%20ADHA%201447H_11zon.webp");
  }
}

.teks-berjaalan {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: #ffffff;
  padding: 0.28rem 0.45rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--primaryDark);
  box-shadow: var(--cardShadow);
}

.container{max-width:1200px;margin:0 auto;padding:22px;}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:18px 0;
}
.brand{
  display:flex; flex-direction:column; gap:4px;
}
.brand .logo{
  font-weight:900; letter-spacing:1px;
  color:#ffffff; font-size:28px; width: 175px;
  filter:none;
}
.brand .sub{color:#ffffff; font-size:12px; opacity:.85}

.searchbox{
  display:flex; align-items:center;
  background:var(--primaryDark); border-radius:6px; overflow:hidden;
  border:1px solid #ffffff;
  box-shadow: var(--cardShadow);
  width:min(420px, 100%);
}
.searchbox input{
  border:0; outline:0; padding:12px 12px;
  width:100%; font-size:14px;
  background:transparent;
  color:#ffffff;
}
.searchbox input::placeholder{
  color:rgba(255,255,255,.78);
}
.searchbox button{
  border:0; cursor:pointer;
  background: var(--yellow2);
  color:#ffffff;
  padding:10px 14px; font-weight:800;
}

.hero-title{
  text-align:center;
  font-weight:900;
  margin:10px 0 16px;
  letter-spacing:.5px;
  color:#ffffff;
  text-shadow:none;
}
.hero-title span{
  display:inline-flex; align-items:center; gap:10px;
}
hr.dots{
  border:0; border-top:1px dashed var(--line);
  margin:16px 0 22px;
  box-shadow:none;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
}
@media (max-width:1100px){ .grid{grid-template-columns: repeat(3,1fr);} }
@media (max-width:860px){ .grid{grid-template-columns: repeat(2,1fr);} }
@media (max-width:520px){ .grid{grid-template-columns: 1fr;} }

.card{
  background: var(--yellow);
  border-radius:10px;
  overflow:hidden;
  box-shadow: var(--cardShadow);
  color:#ffffff;
  border:1px solid #ffffff;
}
.card .thumb{
  background:#000;
  padding:10px;
}
.card .thumb img{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:8px;
  border:2px solid #ffffff;
}
.card .body{padding:14px 14px 16px;}
.card h3{
  margin:0 0 10px;
  font-size:18px; line-height:1.25;
  text-transform:uppercase;
}
.meta{
  display:flex; gap:10px; flex-wrap:wrap;
  font-size:12px; color:#ffffff; opacity:.9;
  margin:8px 0 10px;
}
.smalltext{font-size:13px; line-height:1.55; color:#ffffff;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  background: var(--yellow2);
  color:#ffffff; text-decoration:none;
  padding:10px 12px;
  border: 2px solid var(--line);
  border-radius:6px;
  font-weight:800;
  width:100%;
  margin-top:12px;
  box-shadow:none;
  text-shadow:none;
}

/* Detail layout */
.detail{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:18px;
}
@media (max-width:960px){ .detail{grid-template-columns:1fr;} }

.panel{
  background:var(--panel);
  border-radius:10px;
  padding:14px;
  color:var(--text);
  border:1px solid #ffffff;
  box-shadow: var(--cardShadow);
}
.panel .bigimg{
  width:100%;
  border-radius:10px;
  border:2px solid #ffffff;
  object-fit:cover;
}
.detail-title{
  color:#ffffff;
  font-weight:900;
  text-transform:uppercase;
  margin:6px 0 14px;
  font-size:22px;
  text-shadow:none;
}
.backlink{
  display:inline-flex;
  background: var(--yellow2);
  color:#ffffff;
  padding:8px 10px;
  border-radius:8px;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  border:1px solid #ffffff;
  box-shadow:none;
}

.post-mobile-actions{
  display:none;
}

@media (max-width:768px){
  .post-page .container{
    padding-top:14px;
  }

  .post-page .post-topbar{
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:10px;
    padding:10px 0 8px;
  }

  .post-page .brand{
    align-items:center;
    width:100%;
  }

  .post-page .brand > div.logo{
    display:none;
  }

  .post-page .brand img.logo{
    width:min(220px, 72vw);
  }

  .post-page .post-desktop-search,
  .post-page .container > .backlink{
    display:none;
  }

  .post-page .post-mobile-actions{
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    align-items:stretch;
    gap:8px;
    margin:4px 0 14px;
    width:100%;
  }

  .post-page .post-mobile-backlink{
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 10px;
    white-space:nowrap;
    font-size:12px;
  }

  .post-page .post-mobile-search{
    width:100%;
    min-width:0;
    box-shadow:none;
  }

  .post-page .post-mobile-search input{
    min-width:0;
    padding:10px 8px;
    font-size:12px;
  }

  .post-page .post-mobile-search button{
    padding:10px 10px;
    font-size:12px;
  }
}

.sidebar .sidecard{
  background: var(--yellow);
  border-radius:10px;
  overflow:hidden;
  box-shadow: var(--cardShadow);
  margin-bottom:14px;
  color:#fff;
  border:1px solid #ffffff;
}
.sidebar .sidecard img{
  width:100%;
  height:120px;
  object-fit:cover;
}
.sidebar .sidecard .p{padding:10px;}
.sidebar .sidecard .p .t{font-weight:900; font-size:13px; text-transform:uppercase; line-height:1.25;}
.sidebar .sidecard .p .m{font-size:12px; opacity:.85; margin:6px 0;}
.sidebar .sidecard .p a{
  display:inline-flex; width:100%;
  text-decoration:none;
  background:var(--yellow2); color:#fff;
  font-weight:800; padding:9px 10px; border-radius:6px; justify-content:center;
  border:1px solid #ffffff;
}

body,
body *,
input,
textarea,
select,
button,
a,
label,
th,
td {
  color:#ffffff !important;
}

input,
textarea,
select {
  background:var(--panel) !important;
  border-color:#ffffff !important;
}

input::placeholder,
textarea::placeholder {
  color:rgba(255,255,255,.78) !important;
}

.admin-edit-container{
  max-width:1200px;
}

.admin-edit-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 340px;
  gap:18px;
  align-items:start;
}

.admin-edit-form-panel{
  min-width:0;
}

.admin-live-preview{
  position:sticky;
  top:14px;
  margin-top:12px;
  min-width:0;
}

.admin-preview-title{
  font-weight:800;
  margin-bottom:8px;
  text-transform:uppercase;
}

.admin-preview-card{
  width:100%;
}

.admin-preview-card .thumb img{
  height:190px;
}

.admin-preview-card .body h3{
  overflow-wrap:anywhere;
}

.admin-preview-card .smalltext{
  white-space:pre-line;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media (max-width:1040px){
  .admin-edit-layout{
    grid-template-columns:1fr;
  }

  .admin-live-preview{
    position:static;
  }

  .admin-preview-card{
    max-width:420px;
  }
}

@media (max-width:640px){
  .admin-form-grid{
    grid-template-columns:1fr !important;
  }

  .admin-preview-card{
    max-width:none;
  }
}
