/* =========================
   ROOT & RESET
========================= */
:root {
  --primary: #5f2cff;
  --primary2: #7b4dff;
  --text: #111;
  --muted: #777;
  --bg: #f6f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   background: #ffffff;
  color: var(--text);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   HEADER (ASTRA STYLE)
========================= */
.header {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  position: relative;
}

/* NAV LAYOUT */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* MENU CENTER */
.menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

/* HOVER LINE */
.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* ACTIVE */
.nav-menu .current-menu-item a {
  border-bottom: 2px solid #fff;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
}

/* CTA */
.cta-btn {
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #fff;
  color: var(--primary);
}

/* =========================
   GRID POSTS
========================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 40px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 18px;
}

/* CATEGORY */
.category {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* TITLE */
.card h2 {
  font-size: 17px;
  margin: 10px 0;
  font-weight: 600;
}

/* META */
.meta {
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   SINGLE POST
========================= */
.single-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 40px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================
   AUTHOR BOX
========================= */
.author-box {
  margin-top: 40px;
  padding: 20px;
  background: #f3f4f6;
  border-radius: 10px;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 14px;
  margin: 5px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
}

.pagination .current {
  background: var(--primary);
  color: #fff;
}

/* =========================
   FOOTER PRO STYLE
========================= */
.footer {
  background: #0b0b0f;
  color: #fff;
  margin-top: 80px;
}

/* INNER */
.footer-inner {
  padding: 60px 20px 20px;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

/* TITLE */
.footer h4 {
  font-size: 14px;
  margin-bottom: 15px;
  color: #fff;
}

/* LIST */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

/* LINKS */
.footer a {
  color: #aaa;
  font-size: 14px;
  transition: 0.2s;
}

.footer a:hover {
  color: #fff;
}

/* TEXT */
.footer p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* =========================
   MOBILE MENU FIX
========================= */

.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav-center {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    z-index: 999;
  }

  .nav-center.open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu a {
    color: #111;
  }

  /* RESPONSIVE GRID */
  .post-grid {
    grid-template-columns: 1fr;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 14px 16px;
  }

  .card h2 {
    font-size: 15px;
    line-height: 1.4;
  }

}


/* =========================
   SEARCH PAGE
========================= */
.search-header h1 {
  margin-top: 40px;
  font-size: 28px;
}

/* NO RESULT */
.no-results {
  text-align: center;
  padding: 70px 0;
}

/* SEARCH WRAPPER CENTER */
.search-big {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}



/* =========================
   404
========================= */
.text-center {
  text-align: center;
  padding: 70px 0;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}


/* =========================
   LIVE SEARCH (ASTRA STYLE)
========================= */

.live-search-form {
  position: relative;
  max-width: 500px;
  margin: 40px auto;
}

/* WRAPPER */
.live-search-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 6px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* INPUT */
.live-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 40px;
}

/* BUTTON */
.live-search-button {
  background: #5f2cff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.live-search-button:hover {
  background: #4a22cc;
}

/* RESULT BOX */
.live-search-result {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  padding: 15px;
  display: none;
  z-index: 999;
}

/* ITEM */
.live-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.live-item:last-child {
  border-bottom: none;
}

.live-item a {
  color: #333;
  font-size: 14px;
}

.live-item a:hover {
  color: #5f2cff;
}


/* HEADER SEARCH FIX */
/* DESKTOP ONLY */
@media (min-width: 769px) {
  .live-search-form {
    margin: 0;
    max-width: 260px;
  }
}

/* DESKTOP ONLY */
@media (min-width: 769px) {

  .live-search-wrapper {
    padding: 4px;
    border-radius: 30px;
  }

  .live-search-input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .live-search-button {
    width: 34px;
    height: 34px;
  }

}




/* CARD IMAGE */
.card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* TITLE */
.card-title {
  font-size: 18px;
  margin: 8px 0;
}

/* CATEGORY */
.category {
  font-size: 12px;
  color: #5f2cff;
  display: block;
  margin-bottom: 5px;
}

/* META */
.post-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 13px;
  color: #777;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  fill: #777;
}



/* HIDE MOBILE SEARCH DEFAULT */
.mobile-search {
  display: none;
}



@media (max-width: 768px) {

  .mobile-search {
    display: block;
    padding: 12px 16px;
    
  }

  /* FULL WIDTH */
  .mobile-search .live-search-form {
    max-width: 100%;
    margin: 0;
  }

  /* WRAPPER */
  .mobile-search .live-search-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 40px;
    padding: 6px;
  }

  /* INPUT */
  .mobile-search .live-search-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* BUTTON */
  .mobile-search .live-search-button {
    width: 40px;
    height: 40px;
  }

}



@media (max-width: 768px) {

  /* HEADER JADI 2 BARIS */
  .nav {
    flex-wrap: wrap;
  }

  /* BARIS ATAS */
  .nav-left {
    flex: 1;
  }

  .menu-toggle {
    order: 2;
  }

  /* HIDE SEARCH DESKTOP */
  .nav-right {
    display: none;
  }


}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {

  .single-content h1 {
    font-size: 22px;
  }

  .single-content {
    font-size: 15px;
    line-height: 1.6;
  }

}


/* SINGLE FIX */
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* MOBILE */
@media (max-width: 900px) {

  .single-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 30px;
  }

}

/* CONTENT RESPONSIVE */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


.toc-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.toc-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.toc-box ul {
  list-style: none;
  padding: 0;
}

.toc-box li {
  margin: 6px 0;
}

.toc-box a {
  text-decoration: none;
  color: #5f2cff;
  font-size: 14px;
}

.toc-box a:hover {
  text-decoration: underline;
}



/* DEFAULT HEADER */
.header {
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

/* SAAT SCROLL */
@media (max-width: 768px) {

  .header.scrolled {
    background: transparent !important;
    box-shadow: none;
  }

}


/* =========================
   MOBILE SEARCH CLEAN FINAL
========================= */

/* DEFAULT (HIDE DI DESKTOP) */
.mobile-search {
  display: none;
  transition: transform 0.4s ease;
}

/* MOBILE */
@media (max-width: 768px) {

  .mobile-search {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 16px;
    background: transparent !important;
    z-index: 5;
  }

  /* FORM FULL WIDTH */
  .mobile-search .live-search-form {
    max-width: 100%;
    margin: 0;
  }

  /* INPUT WRAPPER */
  .mobile-search .live-search-wrapper {
    width: 100%;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  /* INPUT */
  .mobile-search .live-search-input {
    padding: 14px 18px;
    font-size: 15px;
  }

  /* BUTTON */
  .mobile-search .live-search-button {
    width: 44px;
    height: 44px;
  }

  /* EFEK NAIK SAAT SCROLL */
  .mobile-search.hide {
    transform: translateY(-60px);
  }

}


/* HEADER ANIMATION */
.header {
  transition: transform 0.35s ease;
}

/* HILANG */
.header.hide {
  transform: translateY(-100%);
}

@media (max-width: 768px) {

  .header {
    transition: transform 0.35s ease;
  }

  .header.hide {
    transform: translateY(-100%);
  }

}