/* ==========================================================================
   GBII Pertama - Shared Site CSS (Extracted from Frontend Template)
   ========================================================================== */

/* Navbar & Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header--row-inner {
  padding: 14px 0;
}
.row--wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--nv-primary-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nv-text-color);
  margin: 0;
  line-height: 1.2;
}
.site-description {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}
.primary-menu-ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu-ul li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--nv-text-color);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 6px 0;
}
.primary-menu-ul li.current-menu-item a,
.primary-menu-ul li a:hover {
  color: var(--nv-primary-accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-button {
  background: var(--nv-primary-accent);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.site-button:hover {
  background: var(--nv-secondary-accent);
}

/* Section padding */
.section-pattern {
  padding-top: 60px;
  padding-bottom: 60px;
}
.section-pattern.bg-light {
  background-color: var(--nv-light-bg);
}

/* Value Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
.pillars-slider {
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 10px;
  padding-bottom: 22px;
  margin-top: -40px;
  align-items: stretch;
}
.pillars-slider::-webkit-scrollbar {
  display: none;
}
.pillars-slider .pillar-card {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  min-width: 220px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
@media (max-width: 991px) {
  .pillars-slider .pillar-card {
    flex-basis: calc(50% - 10px);
  }
}
@media (max-width: 575px) {
  .pillars-slider .pillar-card {
    flex-basis: 85%;
  }
}
.pillar-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.pillar-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50 !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(203, 213, 225, 0.7);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--nv-primary-accent, #2f5aae);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  opacity: 0.65;
  transition: all 0.25s ease;
}
.pillar-nav:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--nv-primary-accent, #2f5aae);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}
.pillar-nav:active {
  transform: translateY(-50%) scale(0.96);
}
.pillar-nav.is-disabled {
  opacity: 0.15 !important;
  pointer-events: none !important;
}
.pillar-prev { left: -18px; }
.pillar-next { right: -18px; }
@media (max-width: 575px) {
  .pillar-prev { left: 4px; }
  .pillar-next { right: 4px; }
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--nv-light-bg);
  color: var(--nv-primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--nv-text-color);
}
.pillar-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Activities & Services Cards Grid */
.activities-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.activity-card-item {
  flex: 1 1 calc(33.333% - 28px);
  min-width: 290px;
  max-width: calc(33.333% - 19px);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.activity-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.1);
}
@media (max-width: 992px) {
  .activity-card-item {
    flex: 1 1 calc(50% - 20px);
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .activity-card-item {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
.activity-card-img-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.activity-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.activity-card-item:hover .activity-card-img-box img {
  transform: scale(1.04);
}
.activity-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}
.activity-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--nv-text-color);
}
.activity-card-body p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

/* Footer Styles */
.site-footer {
  background: #111827;
  color: #94a3b8;
  padding: 48px 0 24px;
}
.site-footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a {
  color: #cbd5e1;
  text-decoration: underline;
}

/* Pos PI Wide Card Styles */
.pospi-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}
.pos-pi-wide-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pos-pi-wide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1) !important;
}
.pos-pi-wide-media {
  flex: 0 0 410px;
  position: relative;
  overflow: hidden;
  min-height: 290px;
}
.pos-pi-wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.pos-pi-wide-card:hover .pos-pi-wide-media img {
  transform: scale(1.04);
}
.pos-pi-wide-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.pos-pi-info-grid {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #475569;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
@media (max-width: 860px) {
  .pos-pi-wide-card {
    flex-direction: column;
  }
  .pos-pi-wide-media {
    flex: 0 0 265px;
    height: 265px;
    min-height: unset;
  }
  .pos-pi-wide-body {
    padding: 20px;
  }
  .pos-pi-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Lebih nyaman untuk sentuhan dan input pada ponsel maupun tablet. */
@media (max-width: 1199px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  .sidebar-close-btn { width: 44px !important; height: 44px !important; }
}

/* Visitor journeys: worship times, directions and content discovery. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #1d4ed8 !important;
  outline-offset: 4px;
}
.hero-cover-section { min-height: 500px; }
.hero-cover-section .wp-block-columns { margin-bottom: 0; }
.hero-cover-section .hero-actions { padding-left: 0; padding-right: 0; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.visit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; font-size: 1rem; font-weight: 700; line-height: 1.4; text-decoration: none; border: 1px solid transparent; transition: background .2s ease; }
.visit-button-primary { color: #fff !important; background: var(--nv-primary-accent); }
.visit-button-primary:hover { background: #234786; }
.visit-button-secondary { color: #234786 !important; background: #fff; border-color: #b5c5df; }
.visit-button-secondary:hover { background: #eff6ff; }
.visit-button-light { background: #fff; color: #234786 !important; }
.visit-button-outline { border-color: #fff; color: #fff !important; background: transparent; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.visit-summary { background: #fff; border-bottom: 1px solid #e2e8f0; }
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.section-eyebrow { display: block; color: #2f5aae; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.visit-summary h2 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 16px; }
.visit-summary h3 { font-size: 1.05rem; margin: 0 0 8px; }
.visit-summary p { color: #475569; line-height: 1.7; margin: 0 0 16px; }
.visit-schedule { border-left: 3px solid #2f5aae; padding-left: 18px; margin-bottom: 22px; }
.visit-schedule p { margin-bottom: 0; }
.text-link { color: #234786; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.about-link { display: inline-block; margin-top: 22px; }
.visit-summary + .container .pillars-grid { margin-top: 32px; }
.archive-heading h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 12px; }
.archive-heading p, .archive-result-count { color: #475569; }
.archive-search { margin: 24px 0 20px; }
.archive-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.archive-search-row { display: flex; gap: 10px; }
.archive-search-row input { min-width: 0; flex: 1; min-height: 48px; padding: 12px 16px; border: 1px solid #94a3b8; border-radius: 8px; font: inherit; background: #fff; }
.archive-search-row button { border: 0; min-height: 48px; cursor: pointer; }
.archive-categories { justify-content: flex-start; margin-bottom: 18px; }
.archive-categories .filter-pill { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.archive-categories a.is-active { color: #fff; }
.nv-pagination { flex-wrap: wrap; }
@media (max-width: 959px) {
  .visit-grid { grid-template-columns: 1fr; gap: 28px; }
  .visit-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-cover-section { min-height: 0; }
  .hero-cover-section h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem) !important; }
  .hero-cover-section .wp-block-cover__inner-container { padding: 44px 0 112px !important; }
  .hero-cover-section .hero-actions { margin-top: 24px; }
  .hero-actions .visit-button { width: 100%; }
  .visit-grid { grid-template-columns: 1fr; }
  .section-pattern { padding-top: 40px; padding-bottom: 40px; }
  .visit-summary + .container .pillars-grid { margin-top: 24px; }
}

/* Agenda uses compact rows to distinguish updates from devotional cards. */
.agenda-list { display: grid; gap: 18px; }
.agenda-list > .wp-block-column { display: grid; grid-template-columns: 200px 1fr; margin: 0; border: 1px solid #e2e8f0; }
.agenda-list > .wp-block-column > img { height: 100% !important; min-height: 180px; }
@media (max-width: 600px) {
  .agenda-list > .wp-block-column { grid-template-columns: 1fr; }
  .agenda-list > .wp-block-column > img { height: 180px !important; }
}

.language-switcher { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px; border: 1px solid #cbd5e1; border-radius: 6px; color: #234786; font-size: .8rem; font-weight: 700; text-decoration: none; }
.language-switcher a[aria-current] { background: var(--nv-primary-accent, #2f5aae); color: #fff; border-color: transparent; }
.header-menu-sidebar > .language-switcher { padding: 16px 24px; }
#prayer-feedback { padding: 16px; margin-bottom: 16px; border: 1px solid #b91c1c; border-radius: 8px; color: #991b1b; background: #fef2f2; }
#prayer-fallback-wa:not([hidden]) { display: inline-block; margin-bottom: 20px; font-weight: 700; text-decoration: underline; }
@media (max-width: 1199px) { .desktop-language { display: none; } }

/* History cards: native touch scrolling with one readable card per view. */
.history-slider { min-width: 0; }
.history-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #94a3b8 transparent; padding: 4px 0 16px; }
.history-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.history-card.wp-block-columns { width: 100%; margin: 0; padding: 28px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; align-items: center; }
.history-card .wp-block-column { min-width: 0; }
.history-card .wp-block-image { margin: 0; }
.history-card img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; }
.history-card h3 { overflow-wrap: anywhere; }
/* A single control surface keeps the arrows and position indicator together. */
.history-nav { display: flex; width: fit-content; max-width: 100%; justify-content: center; align-items: center; gap: 12px; margin: 24px auto 0; padding: 8px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
.history-nav button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid #dbe3ef; background: #fff; color: var(--nv-primary-accent); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.history-nav button svg { display: block; flex-shrink: 0; }
.history-nav #history-next { border-color: var(--nv-primary-accent); background: var(--nv-primary-accent); color: #fff; box-shadow: 0 3px 8px rgba(47, 90, 174, .18); }
.history-nav button:not(:disabled):hover { background: #eff6ff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(47, 90, 174, .12); }
.history-nav #history-next:not(:disabled):hover { background: var(--nv-secondary-accent); }
.history-nav button:focus-visible { outline: 3px solid var(--nv-primary-accent); outline-offset: 3px; }
.history-nav button:active:not(:disabled) { transform: translateY(0); }
.history-nav button:disabled, .history-nav #history-next:disabled { opacity: 1; background: #f1f5f9; border-color: #f1f5f9; color: #94a3b8; box-shadow: none; cursor: default; }
#history-counter { min-width: 64px; text-align: center; color: #334155; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .history-nav button { transition: none; } }
@media (max-width: 781px) {
  .history-card.wp-block-columns { padding: 18px; gap: 20px; }
  .history-card img { max-height: 220px; }
  .history-card h3 { font-size: 1.3rem !important; }
  .history-card h3 + div { font-size: 1rem !important; line-height: 1.7 !important; }
}
