@media (min-width: 1536px) {
  .container.mx-auto,
  .container {
    max-width: 1440px !important;
  }
}

/* Reverse direction for second row by flipping horizontally */
.testimonials-swiper-row-2 {
  transform: scaleX(-1);
}

.testimonials-swiper-row-2 .swiper-slide {
  transform: scaleX(-1);
}

/* Ensure swiper slides display horizontally */
.testimonials-swiper-row-2 .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

#swiper-row-2 {
  transform: scaleX(-1);
}

#swiper-row-2 .swiper-slide {
  transform: scaleX(-1);
}

/* Ensure swiper slides display horizontally */
.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
}

section:not(.about-section) {
  margin-top: -1px;
}

.team-member { 
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.cursor-wrapper,
#accordion-image-wrapper {
  left: 0;
  top: 0;
  will-change: transform, opacity;
}

#accordion-image-wrapper {
  contain: layout paint;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 120ms ease;
}

#accordion-image-wrapper.is-visible {
  opacity: 1;
}

#accordion-image-wrapper .accordion-image-item {
  display: block;
  transform: translateZ(0);
}

#next-section .accordion-header h3 {
  transition-property: color !important;
}

#next-section .accordion-icon,
#next-section .accordion-icon svg {
  transition-property: transform, border-color, color !important;
}

#next-section .accordion-item {
  transition: background-color 180ms ease, border-color 180ms ease;
}

#next-section .accordion-item[data-state="open"] {
  background: linear-gradient(180deg, rgba(70, 71, 157, 0.04) 0%, rgba(70, 71, 157, 0.01) 100%);
}

#next-section .accordion-item[data-state="open"] .accordion-header {
  padding-bottom: 1.25rem;
}

#next-section .accordion-item[data-state="open"] .accordion-icon {
  border-color: #46479d !important;
  background: rgba(70, 71, 157, 0.06);
}

.services-accordion-panel {
  position: relative;
}

.services-links-grid {
  align-items: start;
}

.services-link-card {
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.04);
}

.services-link-card:hover {
  box-shadow: 0 16px 40px rgba(70, 71, 157, 0.12);
}

.services-link-arrow {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 300;
}

.marquee-vertical,
.swiper-wrapper {
  will-change: transform;
}

#ast-scroll-top {
  display: none !important;
}

#callnowbutton {
  display: block !important;
  position: fixed;
  bottom: 15px;
  right: 20px;
}

/* Meet the Team slider (About page) */
.team-swiper-wrap {
  position: relative;
}

.team-swiper {
  overflow: visible;
}

.team-swiper .swiper-slide {
  height: auto;
}

.team-swiper-wrap .team-social svg {
  width: 20px;
  height: 20px;
}

.team-swiper-wrap .team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-swiper-pagination {
  display: none;
}

.team-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.team-swiper-pagination .swiper-pagination-bullet-active {
  background: #000;
}

.team-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
}

.team-swiper-button-prev {
  left: -18px;
}

.team-swiper-button-next {
  right: -18px;
}

.team-swiper-button.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 768px) {
  #next-section .accordion-item[data-state="open"] .accordion-header {
    padding-bottom: 1rem;
  }

  .team-swiper-wrap {
    padding: 0 6px;
  }

  .team-swiper-button-prev {
    left: 6px;
  }
  .team-swiper-button-next {
    right: 6px;
  }

  /* Mobile: pagination ON, arrows OFF */
  .team-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .team-swiper-button {
    display: none;
  }
}

@media (max-width: 480px) {
  .team-swiper-button {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 640px) {
  .team-swiper-wrap .team-social svg {
    width: 24px;
    height: 24px;
  }
}

/* Single blog post — Tailwind Typography (prose) is not bundled with CDN Tailwind */
.single-post-entry {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}

.single-post-entry > * + * {
  margin-top: 1.25rem;
}

.single-post-entry > *:first-child {
  margin-top: 0 !important;
}

.single-post-entry h1,
.single-post-entry h2,
.single-post-entry h3,
.single-post-entry h4,
.single-post-entry h5,
.single-post-entry h6 {
  color: #111827;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-post-entry h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.single-post-entry h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.single-post-entry h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.single-post-entry h4 {
  font-size: 1.125rem;
}

.single-post-entry p {
  margin: 0;
}

.single-post-entry a {
  color: #46479d;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.single-post-entry a:hover {
  color: #312f6b;
}

.single-post-entry strong,
.single-post-entry b {
  font-weight: 600;
  color: #111827;
}

.single-post-entry ul,
.single-post-entry ol {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
}

.single-post-entry li {
  margin: 0.35rem 0;
}

.single-post-entry li > ul,
.single-post-entry li > ol {
  margin-top: 0.35rem;
}

.single-post-entry blockquote {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #46479d;
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(70, 71, 157, 0.06);
  font-style: italic;
  color: #4b5563;
}

.single-post-entry code {
  font-size: 0.95em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(17, 24, 39, 0.06);
}

.single-post-entry pre {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.9rem;
}

.single-post-entry pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.single-post-entry img,
.single-post-entry video,
.single-post-entry iframe {
  max-width: 100%;
  height: auto;
}

.single-post-entry figure img {
  border-radius: 0.75rem;
}

.single-post-entry figure {
  margin: 1.5rem 0 0;
}

.single-post-entry figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.single-post-entry .wp-block-image,
.single-post-entry .wp-block-gallery,
.single-post-entry .wp-block-video,
.single-post-entry .wp-block-embed {
  margin-top: 1.5rem;
}

.single-post-entry .wp-block-gallery {
  gap: 0.75rem;
}

.single-post-entry .alignwide {
  margin-left: 0;
  margin-right: 0;
}

.single-post-entry .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: auto;
  max-width: none;
}

@media (min-width: 1024px) {
  .single-post-entry .alignfull {
    margin-left: unset;
    margin-right: unset;
    width: 100%;
    max-width: 100%;
  }
}

.single-post-entry table {
  width: 100%;
  margin: 1.5rem 0 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.single-post-entry th,
.single-post-entry td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 0.75rem;
}

.single-post-entry th {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

.single-post-entry hr {
  margin: 2rem 0 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.single-post-entry .wp-block-quote {
  border-left-color: #46479d;
}

.single-post-entry .wp-block-separator {
  border-color: #e5e7eb;
}

/* -------------------------------------------------------------------------
 * Contact Form 7 — match landing theme (paired with html_class on shortcode)
 * ------------------------------------------------------------------------- */

form.wfd-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.25rem;
}

form.wfd-cf7 label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

form.wfd-cf7 .wpcf7-not-valid-tip {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  color: #b91c1c;
}

form.wfd-cf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

form.wfd-cf7.sent .wpcf7-response-output {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

form.wfd-cf7.invalid .wpcf7-response-output,
form.wfd-cf7.failed .wpcf7-response-output,
form.wfd-cf7.unaccepted .wpcf7-response-output {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

form.wfd-cf7 .ajax-loader {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Light panels (contact page, services, service singles) */
form.wfd-cf7--light label {
  color: #374151;
}

form.wfd-cf7--light .wfd-cf7-input,
form.wfd-cf7--light input[type="text"],
form.wfd-cf7--light input[type="email"],
form.wfd-cf7--light input[type="tel"],
form.wfd-cf7--light textarea,
form.wfd-cf7--light select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form.wfd-cf7--light textarea {
  resize: vertical;
  min-height: 8rem;
}

form.wfd-cf7--light .wfd-cf7-input:focus,
form.wfd-cf7--light input:focus,
form.wfd-cf7--light textarea:focus,
form.wfd-cf7--light select:focus {
  outline: none;
  border-color: #46479d;
  box-shadow: 0 0 0 1px #46479d;
}

form.wfd-cf7--light input[type="submit"],
form.wfd-cf7--light .wfd-cf7-submit {
  width: 100%;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  background: #46479d;
  color: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}

form.wfd-cf7--light input[type="submit"]:hover,
form.wfd-cf7--light .wfd-cf7-submit:hover {
  background: #111827;
}

form.wfd-cf7--light .wfd-cf7-grid--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  form.wfd-cf7--light .wfd-cf7-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark panel (home footer contact strip) */
form.wfd-cf7--dark label {
  color: #d1d5db;
}

form.wfd-cf7--dark .wfd-cf7-input,
form.wfd-cf7--dark input[type="text"],
form.wfd-cf7--dark input[type="email"],
form.wfd-cf7--dark textarea,
form.wfd-cf7--dark select {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background: rgba(31, 41, 55, 0.5);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form.wfd-cf7--dark textarea {
  resize: none;
  min-height: 8rem;
}

form.wfd-cf7--dark select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

form.wfd-cf7--dark .wfd-cf7-input::placeholder,
form.wfd-cf7--dark input::placeholder,
form.wfd-cf7--dark textarea::placeholder {
  color: #6b7280;
}

form.wfd-cf7--dark .wfd-cf7-input:focus,
form.wfd-cf7--dark input:focus,
form.wfd-cf7--dark textarea:focus,
form.wfd-cf7--dark select:focus {
  outline: none;
  border-color: #46479d;
  box-shadow: 0 0 0 1px #46479d;
}

form.wfd-cf7--dark input[type="submit"],
form.wfd-cf7--dark .wfd-cf7-submit {
  width: 100%;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  background: #46479d;
  color: #fff;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

form.wfd-cf7--dark input[type="submit"]:hover,
form.wfd-cf7--dark .wfd-cf7-submit:hover {
  background: #e04a2a;
}

form.wfd-cf7--dark .wfd-cf7-grid--2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  form.wfd-cf7--dark .wfd-cf7-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

