/* New features styles */

/* ============================================
   Accordion Title Animation (Services Page)
   ============================================ */

#primary .services-list .sow-accordion-panel-header {
  font-family: "Poppins", sans-serif !important;
  font-size: 1.5625rem !important;
}

.services-list .sow-accordion-title {
  font-weight: 700 !important;
}

.long-heading {
  font-size: 28px;
}
/* Span wrapping the title text — controls sweep scope */
.services-list .ibd-title-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-left: 14px;
  padding-right: 14px;
  transition: color 0.75s ease;
}

/* Orange rectangle — visible by default at left edge of each title */
.services-list .ibd-title-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: #f56905;
  z-index: 1;
  pointer-events: none;
}

/* Open: text turns orange */
.services-list .sow-accordion-panel-header.ibd-active .ibd-title-text {
  color: #f56905;
}

/* Open: block stretches then lands on the right */
.services-list .sow-accordion-panel-header.ibd-active .ibd-title-text::before {
  animation: ibd-open 0.75s ease forwards;
}

/* Closing: override animation to reverse */
.services-list
  .sow-accordion-panel-header.ibd-active.ibd-closing
  .ibd-title-text::before {
  animation: ibd-close 0.75s ease forwards;
}

/* Closing: text transitions back to default color */
.services-list
  .sow-accordion-panel-header.ibd-active.ibd-closing
  .ibd-title-text {
  color: unset;
}

/* Open animation: left stays, right stretches → block lands at right edge */
@keyframes ibd-open {
  0% {
    left: 0;
    width: 6px;
    animation-timing-function: ease-out;
  }
  50% {
    left: 0;
    width: 100%;
    animation-timing-function: ease-in;
  }
  100% {
    left: calc(100% - 6px);
    width: 6px;
  }
}

/* Close animation: from right edge, stretches left → contracts to left edge */
@keyframes ibd-close {
  0% {
    left: calc(100% - 6px);
    width: 6px;
    animation-timing-function: ease-out;
  }
  50% {
    left: 0;
    width: 100%;
    animation-timing-function: ease-in;
  }
  100% {
    left: 0;
    width: 6px;
  }
}

/* ── Services list: 2-column layout ─────────────────────────────── */
.services-list .sow-accordion {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 60px;
}

.services-list .sow-accordion-panel {
  flex: 0 0 calc(50% - 30px);
}

/* Add top border to the 2nd panel (first row, right column) */
#primary .services-list .sow-accordion-panel:nth-child(2) {
  border-top: 1px #121212 solid;
}

@media (max-width: 900px) {
  .services-list .sow-accordion-panel {
    flex: 0 0 100%;
  }

  #primary .services-list .sow-accordion-panel:nth-child(2) {
    border-top: none;
  }
}

.team-popup img {
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
}

#primary .home-services div.panel-cell-style h3 {
  font-size: 1.5em;
}

.service-title h4 {
  position: relative;
  padding-left: 20px;
}

.service-title h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f56905;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

#pg-1007-3 {
  padding-bottom: 50px !important;
}

/* Core Values — top border colors */
.value-1,
.value-2,
.value-3,
.value-4,
.value-5,
.value-6 {
  padding-top: 1.5em;
}

.value-1 p strong,
.value-2 p strong,
.value-3 p strong,
.value-4 p strong,
.value-5 p strong,
.value-6 p strong {
  font-size: 1.46875rem;
}

.value-1 {
  border-top: 4px solid #ab0068;
}
.value-2 {
  border-top: 4px solid #fec106;
}
.value-3 {
  border-top: 4px solid #f56905;
}
.value-4 {
  border-top: 4px solid #005691;
}
.value-5 {
  border-top: 4px solid #e00702;
}
.value-6 {
  border-top: 4px solid #9e9e9e;
}

#pgc-21-4-0 .value-2 {
  border-top-color: #005691;
}

#panel-21-7-0-0 #post-687 {
  display: none;
}

/* ============================================
   Blog Category Filter — WPC Smart Filter
   ============================================ */

/* Force button container visible (plugin hides it in inline mode) */
.wpc-filters-open-button-container {
  display: block !important;
}

/* Trigger button */
.wpc-open-close-filters-button {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background-color: #f56905 !important;
  color: #fff !important;
  padding: 11px 24px !important;
  border-radius: 4px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s;
  border: none !important;
}

.wpc-open-close-filters-button:hover {
  background-color: #d95700 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.wpc-open-close-filters-button:focus-visible {
  outline: 3px solid #121212 !important;
  outline-offset: 3px !important;
  background-color: #d95700 !important;
  color: #fff !important;
}

.wpc-open-close-filters-button .wpc-filters-button-text {
  color: #fff !important;
  font-weight: 700;
}

.wpc-open-close-filters-button .wpc-icon-line-1,
.wpc-open-close-filters-button .wpc-icon-line-2,
.wpc-open-close-filters-button .wpc-icon-line-3 {
  background-color: #fff !important;
}

/* Filter panel — entrance animation */
@keyframes wpc-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel hidden by default; shown when filters are active or JS restores state */
.wpc-filters-widget-content {
  display: none;
  background: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid #e8e8e8 !important;
  overflow: hidden;
  animation: wpc-panel-in 0.22s ease;
}

/* Panel header (close X + title) */
.wpc-widget-close-container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 36px 20px !important;
  border-bottom: 1px solid #eeeeee;
  background: #fff;
}

.wpc-widget-popup-title {
  font-family: "Nunito Sans", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #121212 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wpc-widget-close-icon {
  display: none !important;
}

/* Show panel when active filters present */
.wpc-filters-main-wrap.wpc-filter-request .wpc-filters-widget-content {
  display: block;
}

/* Hide chips row */
.wpc-filters-widget-top-container {
  display: none !important;
}

/* Scroll area */
.wpc-filters-scroll-container {
  padding: 8px 0;
}

/* Remove bullets and markers from filter items */
.wpc-filter-content ul li::before,
.widget_wpc_filters_widget li::before {
  display: none !important;
}

.wpc-filter-content ul li::marker,
.widget_wpc_filters_widget li::marker {
  content: "" !important;
}

/* Each filter item row */
.wpc-filter-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wpc-filter-content ul li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f2f2f2;
}

.wpc-filter-content ul li:last-child {
  border-bottom: none;
}

.wpc-term-item-content-wrapper {
  display: flex;
  align-items: center;
}

/* Hide native checkbox visually but keep it in tab order */
.wpc-filters-main-wrap input.wpc-label-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
}

/* Focus ring when checkbox input is keyboard-focused */
.wpc-filters-main-wrap input.wpc-label-input:focus-visible + label,
.wpc-filters-main-wrap input.wpc-label-input:focus + label {
  outline: 3px solid #f56905 !important;
  outline-offset: -2px !important;
  border-radius: 3px;
  background-color: #fef4ec !important;
}

/* Focus ring on the <a> link inside each filter item (primary tab target) */
.wpc-filter-content ul li label a:focus-visible,
.wpc-filter-content ul li label a:focus {
  outline: 3px solid #f56905 !important;
  outline-offset: 2px !important;
  border-radius: 2px;
  text-decoration: none !important;
}

/* Label row */
.wpc-filter-content ul li label {
  display: flex !important;
  align-items: center;
  width: 100%;
  border: none !important;
  padding: 11px 20px !important;
  margin-bottom: 10px !important;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #121212 !important;
  background-color: transparent !important;
  user-select: none;
  transition: background-color 0.15s;
}

.wpc-filter-content ul li label:hover {
  background-color: #fef4ec !important;
  color: #121212 !important;
}

/* Custom checkbox via ::before on the label wrapper span */
.wpc-filter-content ul li label span.wpc-filter-label-wrapper {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  background-color: transparent !important;
}

.wpc-filter-content ul li label span.wpc-filter-label-wrapper::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #aaaaaa;
  border-radius: 3px;
  background-color: #fff;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

/* Checked state */
body
  .wpc-filters-main-wrap
  input.wpc-label-input:checked
  + label
  span.wpc-filter-label-wrapper::before {
  background-color: #f56905;
  border-color: #f56905;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

body .wpc-filters-main-wrap input.wpc-label-input:checked + label {
  background-color: #fef4ec !important;
}

body
  .wpc-filters-main-wrap
  input.wpc-label-input:checked
  + label
  span.wpc-filter-label-wrapper {
  color: #121212 !important;
  text-decoration: none !important;
}

/* Lock all link states to prevent layout shift from all.css hover rules */
.wpc-filter-content ul li label a,
.wpc-filter-content ul li label:hover a,
.wpc-filter-content ul li label:focus a {
  color: #121212 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* Prevent any box-model changes on hover */
.wpc-filter-content ul li,
.wpc-filter-content ul li label,
.wpc-filter-content ul li label span.wpc-filter-label-wrapper {
  box-sizing: border-box !important;
}

.wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item
  input:checked
  + label
  a {
  color: #121212 !important;
  text-decoration: none !important;
}

/* Hide Show/Cancel controls */
.wpc-filters-widget-controls-container {
  display: none !important;
}

/* ========== */

@media (max-width: 900px) {
  .team-popup .pop-up-content-wrap {
    grid-template-columns: 1fr !important;
    grid-auto-flow: row;
  }

  .custom-model-wrap {
    overflow-y: auto !important;
  }
}
