/* PTSP Cikarang V2.1 — header/footer widget areas and responsive layout */
.footer-inner {
  width: min(96%, 1480px);
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 28px !important;
  align-items: start !important;
}
.footer-col { min-width: 0; }
.footer-brand-column { max-width: 100%; }
.footer-caption { max-width: 360px; }
.footer-widget-column .ptsp-footer-widget-content,
.ptsp-header-widget-area .ptsp-header-widget-inner { min-width: 0; }
.ptsp-widget { margin: 0 0 12px; color: #d5e8f0; }
.ptsp-widget-title,
.footer-widget-column > h4 {
  margin: 0 0 12px;
  color: #73d7f0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ptsp-widget p,
.ptsp-widget li,
.ptsp-widget a {
  color: #d5e8f0;
  font-size: 12px;
  line-height: 1.7;
}
.ptsp-widget a { text-decoration: none; }
.ptsp-widget a:hover { color: #fff; text-decoration: underline; }
.ptsp-widget ul { margin: 0; padding-left: 18px; }
.ptsp-header-widget-area {
  background: #f5fafc;
  border-bottom: 1px solid #dce9ef;
}
.ptsp-header-widget-inner {
  width: min(96%, 1480px);
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 0;
}
.ptsp-header-widget-area .ptsp-widget { color: #183247; margin: 0; }
.ptsp-header-widget-area .ptsp-widget-title { color: #087eaa; }
.ptsp-header-widget-area .ptsp-widget p,
.ptsp-header-widget-area .ptsp-widget li,
.ptsp-header-widget-area .ptsp-widget a { color: #35566b; }
.editor .home-extra-grid.toggles {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.editor .home-extra-grid.toggles .photo-chip-toggle {
  min-width: 0;
  align-items: flex-start;
}
.editor .home-extra-row > .btn { display: inline-flex; margin: 6px 0; }
@media (max-width: 900px) {
  .footer-inner {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr !important; gap: 18px !important; }
  .editor .home-extra-grid.toggles { grid-template-columns: 1fr; }
}

/* V2.2: four independent footer widget columns */
.ptsp-footer-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
}
.ptsp-footer-grid > .footer-col { min-width: 0; width: auto; }
.ptsp-footer-grid .footer-widget-column > h4,
.ptsp-footer-grid .ptsp-widget-title {
  color: #73d7f0;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ptsp-footer-grid .ptsp-footer-widget-content,
.ptsp-footer-grid .ptsp-widget { min-width: 0; }
.ptsp-footer-grid .ptsp-widget { margin: 0 0 12px; color: #d5e8f0; }
.ptsp-footer-grid .ptsp-widget p,
.ptsp-footer-grid .ptsp-widget li,
.ptsp-footer-grid .ptsp-widget a,
.ptsp-footer-grid .cms-footer-menu-column a {
  color: #d5e8f0;
  font-size: 12px;
  line-height: 1.75;
}
.ptsp-footer-grid .ptsp-widget a,
.ptsp-footer-grid .cms-footer-menu-column a { text-decoration: none; }
.ptsp-footer-grid .ptsp-widget a:hover,
.ptsp-footer-grid .cms-footer-menu-column a:hover { color: #fff; text-decoration: underline; }
.ptsp-footer-grid .ptsp-widget ul { margin: 0; padding-left: 18px; }
.logo { text-decoration: none !important; color: inherit; cursor: pointer; }
.logo:focus-visible { outline: 3px solid #39b9dc; outline-offset: 4px; }
@media (max-width: 1000px) {
  .ptsp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .ptsp-footer-grid { grid-template-columns: 1fr !important; }
}


/* V2.3: Match the original PTSP E-Court launch button.
   The WordPress theme renders an anchor; the generic .service-link a selector
   previously overrode .ecourt-launch-btn color with the parent gold color. */
.service-link a.ecourt-launch-btn,
.service-link a.ecourt-launch-btn:link,
.service-link a.ecourt-launch-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #087eaa !important;
  color: #fff !important;
  padding: 9px 12px !important;
  font: 800 10px "Poppins", "Segoe UI", Arial, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer;
}
.service-link a.ecourt-launch-btn:hover,
.service-link a.ecourt-launch-btn:focus,
.service-link a.ecourt-launch-btn:focus-visible {
  background: #075d82 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.service-link a.ecourt-launch-btn svg {
  display: inline-block;
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px;
  color: #fff !important;
  stroke: currentColor;
}


/* V2.4: Force the E-Court action button to match the original PTSP button.
   The original .service-link anchor inherits the gold text color. This more
   specific rule covers both server-rendered cards and cards re-rendered by JS. */
#service-detail-ecourt .service-link > a.ecourt-launch-btn,
#service-detail-ecourt .service-link > a.ecourt-launch-btn:link,
#service-detail-ecourt .service-link > a.ecourt-launch-btn:visited,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn:link,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn:visited,
.service-link > a.ecourt-launch-btn,
.service-link > a.ecourt-launch-btn:link,
.service-link > a.ecourt-launch-btn:visited {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  width: auto !important;
  min-height: 33px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #087eaa !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
#service-detail-ecourt .service-link > a.ecourt-launch-btn:hover,
#service-detail-ecourt .service-link > a.ecourt-launch-btn:focus,
#service-detail-ecourt .service-link > a.ecourt-launch-btn:focus-visible,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn:hover,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn:focus,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn:focus-visible,
.service-link > a.ecourt-launch-btn:hover,
.service-link > a.ecourt-launch-btn:focus,
.service-link > a.ecourt-launch-btn:focus-visible {
  background: #075d82 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  outline-offset: 3px;
}
#service-detail-ecourt .service-link > a.ecourt-launch-btn svg,
.service-card#ecourt .service-detail .service-link > a.ecourt-launch-btn svg,
.service-link > a.ecourt-launch-btn svg {
  display: inline-block !important;
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  flex: 0 0 13px !important;
  margin: 0 !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
}
