/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* ===== CSS VARIABLES ===== */
:root {
  --brand-primary: #2f4668;
  --brand-primary-hover: #283a56;
  --soft-bg: #eef6f5;
  --muted: #6c7a87;
  /* Bootstrap primary override */
  --bs-primary: #344b6b;
  --bs-primary-rgb: 52, 75, 107;
}

[data-bs-theme="light"] {
  --bs-primary: #344b6b;
  --bs-primary-rgb: 52, 75, 107;
}

/* ===== HEADER STYLES ===== */
.jgbb-header {
  background-color: white;
}

.jgbb-header .nav-link {
  text-decoration: none;
}

.jgbb-header .nav-link:hover {
  opacity: 0.85;
}

.jgbb-brand {
  font-weight: 700;
  text-decoration: none;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  background-color: var(--bs-primary) !important;
  color: #fff;
  border: 1px solid var(--bs-primary) !important;
  font-weight: bold !important;
}

.btn-primary:hover {
  background-color: #000;
  color: #fff;
  font-weight: bold !important;
}

.btn-outline-primary {
  background-color: #fff !important;
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  font-weight: bold !important;
}

.btn-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.btn-cta {
  background: #fff !important;
  color: var(--brand-primary) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}

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

/* ===== FOOTER STYLES ===== */
.jgbb-footer {
  background: var(--soft-bg);
}

.jgbb-footer .cta-panel {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 14px;
  padding: 32px 16px;
  max-width: 980px;
  margin: 12px auto 0;
}

.jgbb-footer .cta-panel h2 {
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  margin: 0;
}

.foot-title {
  color: #566678;
  font-weight: 700;
  margin-bottom: 10px;
}

.foot-link {
  color: #7d8a98;
  text-decoration: none;
}

.foot-link:hover {
  color: #4b5a6b;
}

.soc-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.soc-btn:hover {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .jgbb-header .btn {
    padding: 0.4rem 0.7rem;
  }

  .jgbb-header .gap-3 {
    gap: 0.5rem !important;
  }
}

/* ===== HIDE DEFAULT ASTRA ELEMENTS ===== */
.site-primary-header-wrap,
.ast-primary-header-bar,
.ast-mobile-header-wrap,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
  display: none !important;
}

/* tinggi caption rapi */
.carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

/* ===== LATEST POSTS CAROUSEL ENHANCEMENTS ===== */
.lp-carousel {
  overflow: hidden;
}

.lp-carousel .carousel-item {
  position: relative;
}

.lp-carousel .lp-blur-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.9);
  transform: scale(1.15);
  opacity: 0.45;
  background-color: #eceff3; /* fallback gray */
}

.lp-carousel .lp-image {
  position: relative;
  z-index: 1;
}

.lp-carousel .lp-caption {
  z-index: 2;
  backdrop-filter: saturate(120%) blur(2px);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Make caption full width at bottom */
.lp-carousel .carousel-caption.lp-caption {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

/* Justify caption excerpt text */
.lp-carousel .lp-caption .lp-excerpt {
  text-align: justify;
}

.lp-carousel .lp-title {
  font-weight: 800;
  font-size: clamp(1rem, 2.7vw, 1.6rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.lp-carousel .lp-meta {
  color: #e6e6e6;
  opacity: 0.95;
}

.lp-carousel .lp-excerpt {
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .lp-carousel .lp-caption {
    padding: 0.5rem 0.6rem;
  }
  .lp-carousel .lp-title {
    font-size: 1rem;
  }
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: #14171991 !important;
}

.navbar-toggler:hover {
  background: var(--brand-primary) !important;
}

.navbar-toggler:hover .navbar-toggler-icon {
  color: #fff !important;
}

/* prettier mobile toggler */
.jgbb-toggler {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jgbb-toggler i {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.jgbb-toggler:hover i {
  color: #fff;
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1221px !important;
  }
}

/* ===== CONTENT BEFORE STYLES ===== */
/* Hero area */
.jgbb-blog-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e6edf5;
}
.jgbb-eyebrow {
  color: #98a3af;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.jgbb-hero-title {
  font-weight: 800;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
}
.jgbb-hero-sub {
  max-width: 860px;
  margin: 0 auto;
  color: #6c7a87;
}

/* Search bar */
.jgbb-search-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  background: #f5f7fa;
  border: 1px solid #e6edf5;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.jgbb-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  outline: none;
}
.jgbb-input::placeholder {
  color: #9aa7b4;
}

/* Pakai warna tombol brand yang sudah kamu set sebelumnya */
.btn-brand-primary {
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 576px) {
  .jgbb-search-wrap {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
  }
  .btn-brand-primary {
    width: 100%;
  }
}

.blog .site-main,
.archive .site-main {
  margin-top: 40px;
}

/* Featured sidebar */
.widget_recent_entries,
.wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-block-latest-posts li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.wp-block-latest-posts li img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.wp-block-latest-posts li a {
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}
.wp-block-latest-posts li a:hover {
  text-decoration: underline;
}
.wp-block-latest-posts .wp-block-latest-posts__post-date {
  display: block;
  font-size: 12px;
  color: #6c7a87;
}

.jgbb-hero {
  background: #fff;
}
.jgbb-hero .tracking-wide {
  letter-spacing: 0.06em;
}
.jgbb-pill .input-group-text {
  border-top-left-radius: 50rem;
  border-bottom-left-radius: 50rem;
}
.jgbb-pill .form-control {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: #fff;
}
.jgbb-pill {
  border-radius: 50rem;
  overflow: hidden;
}
.jgbb-hero .btn.btn-primary {
  height: 100%;
}
@media (max-width: 576px) {
  .jgbb-pill {
    flex-wrap: wrap;
    border-radius: 1rem;
  }
  .jgbb-hero .btn {
    width: 100%;
    border-radius: 0.75rem !important;
  }
}
