/** Port Houston Custom Styles **/

body {
  overflow-x: hidden;
}

p:has(~ ul) {
  margin-bottom: 10px;
}

.block ul,
div[id^="accordion"] ul {
  margin-bottom: 2em;
  margin-left: 2em;
}

a,
.btn,
.button,
button,
.sptp-member-read-more-button,
#port-resources .card-img-overlay,
#card-block .card-img-overlay,
.tribe-events-content a,
.btn.btn-primary,
.wpcf7 input.btn-primary[type="submit"] {
  -webkit-transition: all 500ms ease;
  -moz-transition: all 500ms ease;
  -ms-transition: all 500ms ease;
  -o-transition: all 500ms ease;
  transition: all 500ms ease;
}

.btn,
.button,
button,
.sptp-member-read-more-button,
#port-resources .card-img-overlay,
#card-block .card-img-overlay,
.tribe-events-content a,
.btn.btn-primary,
.wpcf7 input.btn-primary[type="submit"],
.gform_wrapper.gravity-theme .gform_footer button {
  line-height: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  padding: 10px 20px !important;
}

.card-img-overlay {
  display: flex;
}

.card-img-overlay .text-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

a:hover,
.tribe-events-content a:hover {
  border: none;
}

.max-secondary {
  max-width: 1280px;
  margin: 0 auto;
}

.max-narrow {
  max-width: 960px;
  margin: 0 auto;
}

form,
gform_confirmation_wrapper {
  padding: 15px;
}

input.field.form-control {
  height: reset;
}

iframe,
iframe.mobil-vido-stl {
  width: 100%;
  max-width: 640px;
}

#gform_wrapper_16 #field_16_9 {
  margin-left: 20px;
}

footer#page-footer footer #footer_copyright p {
  color: #fff !important;
}

#menu_sidebar li {
  padding: 7px 0 !important;
}

#menu_sidebar a,
#menu_sidebar .children li {
  display: flex;
}

ul.children {
  margin-top: 5px !important;
}

footer#page-footer ul li {
  margin-bottom: 7px !important;
}

.gform-footer.gform_footer.top_label {
  margin-right: 5px !important;
}

footer#page-footer #gform_1 .gform_button {
  height: 20px;
  margin-bottom: 15px !important;
  margin-top: 0px !important;
}

form#gform_1 {
  gap: 10px;
}

.home img.img-fluid.drop_10 {
  width: 69px !important;
  height: 69px !important;
}

input#input_1_1 {
  outline: none !important;
}

.block.block__content a {
  text-decoration: underline;
}

[data-cky-tag="powered-by"],
[data-cky-tag="detail-powered-by"] {
  display: none !important;
}

#ae_launcher {
  bottom: 64px !important;
}

#ae_launcher .icomoon-cta {
  cursor: pointer;
}

.cky-consent-container {
  z-index: 9999999999;
}

h3.t-sep {
  position: relative;
  padding-top: 40px;
}

h3.t-sep:before {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  height: 1px;
  width: 70%;
  transform: translateX(-50%);
  border-top: 1px solid #002f70;
}

.sptp-overflow-h {
  aspect-ratio: 2/3;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
}

.sptp-member-extra-fields > .sptp-member-extra-info-text:nth-child(even) {
  font-style: italic;
  font-weight: 500 !important;
}

.wpcp-single-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.wpcp-single-item img {
  margin-bottom: 15px;
}

.wpcp-slide-image {
  max-width: 300px;
  margin: 0 auto;
}

.gform_wrapper.gravity-theme .field_description_above .description,
.gform_wrapper.gravity-theme .field_description_above .gfield_description,
.gform_wrapper.gravity-theme .field_description_above .gsection_description,
.gform_wrapper.gravity-theme .field_description_above .instruction {
  padding-top: 0;
  font-size: 13px !important;
}

.home .jumbotron:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.home .jumbotron .container {
  position: relative;
  z-index: 90;
}

li.mega-toggle-on ul {
  z-index: 99999;
}

#port-resources {
  margin-bottom: 60px;
}

#wrapper-navbar {
  background: #031e45;
}

nav.navbar.navbar-dark {
  max-width: 1920px;
  margin: 0 auto;
}

#wrapper-navbar nav.utility {
  z-index: 99;
}

#mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary.show {
  display: block;
}

.hr-desktop,
.hr-mobile,
.icon-north {
  transform: scaleY(-1);
  margin: 40px 0;
}

.block_split-slider-right {
  align-content: center;
}

#card-block .card-img-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

#port-resources .card-img-overlay:hover,
#card-block .card-img-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.row .intro_block-left {
  align-content: center;
}

.intro_block .intro_block-right p {
  text-align: left;
  margin-bottom: 20px;
}

.block-contacts {
  background: #f0f0f0;
  padding: 20px;
}


/* Accordion Styles */
.accordion-item .accordion-header {
  cursor: pointer;
}

.accordion-header ~ .accordion-content {
  display: none;
}

.accordion-header.active ~ .accordion-content {
  display: table-row;
}


.wpcp-carousel-wrapper .wpcp-nav {
  padding: 10px !important;
  background: #002f70;
  background-color: #002f70 !important;
  color: #fff !important;
  border-radius: 50% !important;
}

/* Animate compasses: Starting (pre-reveal) state */
.hr-desktop {
  opacity: 0;
  transform: translateY(-24px) scaleY(-1);
  transition:
    opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed state, toggled by JS when scrolled into view */
.hr-desktop.is-revealed {
  opacity: 1;
  transform: translateY(0) scaleY(-1);
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hr-desktop {
    transition: none;
    transform: scaleY(-1);
    opacity: 1;
  }
}

/* Landing Page */
.lp .jumbotron {
  background-color: transparent;
  max-width: 1280px;
  min-height: 400px;
  width: 100%;
  margin: 34px auto 40px auto;
  background-size: contain;
  background-repeat: no-repeat;
}

.lp h1 {
  font-size: 5.5em;
  font-weight: 700;
  line-height: 1em;
}

.lp h2 {
  font-size: 4.5em;
}

.lp h2.sub {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 60px;
}

.lp p.container {
  max-width: 620px;
  margin: 0 auto 20px;
  width: 100%;
}

.lp .narrow-content {
  padding: 20px 0px 60px 0px;
}

.lp #card-block {
  background: #f0f0f0;
  padding: 40px 0px;
}

.lp #card-block.pt-4 {
  padding-top: unset !important;
  padding: 60px 0px 0px !important;
}

.lp .card {
  background-color: transparent;
}

.dlp-folders-container .dlp-folders-search {
  justify-content: start;
}

.sidebar {
  display: none;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 15px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #002f70; /* Port Houston Navy */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 99999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  /* Control visibility via opacity to prevent mobile rendering glitches */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    background-color 0.2s ease,
    transform 0.2s ease;

  /* Removes tap highlight on mobile devices */
  -webkit-tap-highlight-color: transparent;
}

#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: #e57200; /* Port Houston Orange */
  color: #ffffff;
  transform: translateY(-3px);
}

#back-to-top i {
  font-size: 20px;
  margin-top: 2px;
}

footer#page-footer #form p {
  margin-bottom: 0px;
}

footer#page-footer h2,
footer#page-footer h3 {
  line-height: 1;
}

footer#page-footer #gform_1 {
  width: 100%;
  justify-content: space-between;
  padding-left: 0px;
  padding-right: 0px;
}

footer#page-footer #gform_1 .gform_button {
  cursor: pointer;
}

#gform_1 {
  display: flex;
  align-items: center;
  width: 100%;
}

footer#page-footer #gform_1 input {
  padding-left: 8px !important;
}

#gform_1 .gform-body {
  flex-grow: 1;
}

#gform_1 #gform_fields_1,
#gform_1 #field_1_1,
#gform_1 .ginput_container_email {
  width: 100%;
}

#gform_1 input#input_1_1 {
  width: 100%;
  box-sizing: border-box;
}

#gform_1 .gform-footer {
  flex-shrink: 0;
}

/* Responsive Styles */

@media (min-width: 992px) {
  .sidebar {
    display: block;
  }
}

@media (max-width: 1199px) {
  #gform_wrapper_16 #field_16_9 {
    margin-left: 0px;
  }

  .gform_wrapper.gravity-theme#gform_wrapper_16 .gfield.gfield--width-half {
    grid-column: span 7;
  }
}

@media (max-width: 768px) {
  .page-id-111 .sptp-member {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-template-secondary .block.block__content .sp-wp-team-pro-wrapper {
    margin: 30px 0px;
  }

  .page-template-secondary
    .block.block__content
    .sp-wp-team-pro-wrapper
    .sptp-square
    .sptp-image,
  .page-template-secondary
    .block.block__content
    .sp-wp-team-pro-wrapper
    .sptp-square
    .sptp-content.lower.sptp-square {
    width: 50%;
  }

  .page-template-secondary
    .block.block__content
    .sp-wp-team-pro-wrapper
    .sptp-square
    .sptp-member-name
    h2.sptp-name {
    font-size: 1.8em;
  }

  .page-template-secondary
    .block.block__content
    .sp-wp-team-pro-wrapper
    .sptp-square
    .caption
    .sptp-read-more-button
    a.sptp-member-read-more-button {
    font-size: 18px;
    letter-spacing: 3px;
    padding: 7px 10px;
  }
}

@media (max-width: 767px) {
  .dropdown-el {
    margin-top: 20px !important;
  }
}

@media (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

@media (max-width: 767px) {
  .order-2 {
    order: 1;
  }
}

@keyframes rotate-custom {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}

@media (max-width: 767.98px) {
  footer#page-footer #footer_contact_info,
  footer#page-footer #footer_logo,
  footer#page-footer #form {
    text-align: left;
  }

  footer#page-footer #footer_contact_info i.fa-magnifying-glass,
  footer#page-footer #footer_contact_info address,
  footer#page-footer #footer_contact_info h3,
  footer#page-footer #footer_contact_info p,
  footer#page-footer #footer_logo address,
  footer#page-footer #footer_logo h3,
  footer#page-footer #footer_logo p,
  footer#page-footer #form address,
  footer#page-footer #form h3,
  footer#page-footer #form p {
    font-size: 1em !important;
  }
}

.page-template-notices .category .jumbotron:after,
.page-template-notices .jumbotron:after,
.page-template-press-releases .category .jumbotron:after,
.page-template-press-releases .jumbotron:after,
.page-template-secondary .category .jumbotron:after,
.page-template-secondary .jumbotron:after,
.home .category .jumbotron:after,
.home .jumbotron:after {
  animation: rotate-custom 5s ease-in-out forwards;
  animation-iteration-count: 1;
  width: 400px !important;
  height: 400px !important;
  right: -180px !important;
}

/* Smart Team Pro Custom Styles */
#sptp-2741 {
  padding-top: 40px;
}

#sptp-2741 .sptp-section-title span {
  color: #002f70;
  font-size: 2.625em;
  line-height: 28px;
  text-transform: uppercase;
  font-family: "Teko", helvetica, arial, sans-serif;
}

#sptp-2741:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-2741:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-2741:not(.popup-open) .sptp-member-profession h4,
#sptp-2741:not(.popup-open) .sptp-member-email span,
#sptp-2741:not(.popup-open) .sptp-member-phone span {
  font-family: "Open Sans", helvetica, arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}

#sptp-2741:not(.popup-open) .sptp-member-email span {
  text-transform: lowercase;
}

#sptp-2741 .filters-button-group button,
.sptp-post-load-more span,
.page-load-status .infinite-scroll-last {
  font-family: "Teko", helvetica, arial, sans-serif;
  letter-spacing: 3px;
  font-weight: 700;
}

.page-load-status .infinite-scroll-last {
  background: #af1e39;
}

#sptp-2741:not(.popup-open) .sptp-member-email a span,
#sptp-2741:not(.popup-open) .sptp-member-phone a span {
  color: #002f70 !important;
  text-decoration: underline !important;
}

#sptp-2741:not(.popup-open) .sptp-member-email a span:hover,
#sptp-2741:not(.popup-open) .sptp-member-phone a span:hover {
  color: #f9c315 !important;
}

/* Port Commission */
#sptp-3069:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-3069:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-3069:not(.popup-open) .sptp-member-profession h4,
#sptp-3069 .sptp-member-desc,
#sptp-3069 .sptp-read-more-button {
  text-align: left !important;
}

#sptp-3069:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-3069:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-3069.popup-open .sptp-member-name h2,
#sptp-3069 .gridder-show .sptp-member-name h2,
#wrapper #sptp-3069.popup-open .sptp-member-name h2 {
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 700;
  font-size: 2.25em;
  line-height: 1.1em;
  color: #002f70;
  letter-spacing: 3px;
}

#sptp-3069:not(.popup-open) .sptp-member-profession h4,
#sptp-3069.popup-open .sptp-member-profession h4,
#sptp-3069 .gridder-show .sptp-member-profession h4 {
  font-size: 1.375em;
  letter-spacing: 1px;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 500;
  color: #002f70;
}

#sptp-3069:not(.popup-open) .sptp-member-desc {
  font-family: "Open Sans", helvetica, arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  color: #444749;
  line-height: 2 !important;
  font-size: 1em;
}

#sptp-3069 .sptp-read-more-button a {
  color: #fff !important;
  background-color: #af1e39;
  border-radius: 0;
  border: 0;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 7px 20px;
  text-decoration: none !important;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-size: 24px;
  white-space: break-spaces;
}
#sptp-3069 .sptp-list .sptp-content {
  margin: auto;
}

#sptp-3069.popup-open .sptp-member-profession h4 {
  margin-bottom: 10px;
}

#sptp-3069
  > div.sptp-popup-item.sp-team-popup-item-section
  > div
  > div.sptp-member
  > div.sptp-member-desc {
  margin-top: 30px;
}

@media only screen and (max-width: 428px) {
  #sptp-3069 .sptp-read-more-button a {
    color: #fff !important;
    background-color: #af1e39;
    border-radius: 0;
    border: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 15px;
    text-decoration: none !important;
    font-family: "Teko", helvetica, arial, sans-serif;
    font-size: 16px !important;
    white-space: nowrap;
  }

  #sptp-3069:not(.popup-open) .sptp-member-name .sptp-name,
  #sptp-3069:not(.popup-open) .sptp-member-name sptp-name a,
  #sptp-3069.popup-open .sptp-member-name h2,
  #sptp-3069 .gridder-show .sptp-member-name h2,
  #wrapper #sptp-3069.popup-open .sptp-member-name h2 {
    font-size: 2em;
    line-height: 1em;
    color: #002f70;
    letter-spacing: 1.5px;
  }
}

/* Executive Administration */
#sptp-3344:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-3344:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-3344:not(.popup-open) .sptp-member-profession h4,
#sptp-3344 .sptp-member-desc,
#sptp-3344 .sptp-read-more-button,
#sptp-7701:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-7701:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-7701:not(.popup-open) .sptp-member-profession h4,
#sptp-7701 .sptp-member-desc,
#sptp-7701 .sptp-read-more-button,
#sptp-13946:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-13946:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-13946:not(.popup-open) .sptp-member-profession h4,
#sptp-13946 .sptp-member-desc,
#sptp-13946 .sptp-read-more-button {
  text-align: left !important;
}

#sptp-3344:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-3344:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-3344.popup-open .sptp-member-name h2,
#sptp-3344 .gridder-show .sptp-member-name h2,
#wrapper #sptp-3344.popup-open .sptp-member-name h2,
#sptp-7701:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-7701:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-7701.popup-open .sptp-member-name h2,
#sptp-7701 .gridder-show .sptp-member-name h2,
#wrapper #sptp-7701.popup-open .sptp-member-name h2,
#sptp-13946:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-13946:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-13946.popup-open .sptp-member-name h2,
#sptp-13946 .gridder-show .sptp-member-name h2,
#wrapper #sptp-13946.popup-open .sptp-member-name h2 {
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 700;
  font-size: 2.25em;
  line-height: 1.1em;
  color: #002f70;
  letter-spacing: 3px;
  margin-top: 0 !important;
}

#sptp-3344:not(.popup-open) .sptp-member-profession h4,
#sptp-3344.popup-open .sptp-member-profession h4,
#sptp-3344 .gridder-show .sptp-member-profession h4,
#sptp-7701:not(.popup-open) .sptp-member-profession h4,
#sptp-7701.popup-open .sptp-member-profession h4,
#sptp-7701 .gridder-show .sptp-member-profession h4,
#sptp-13946:not(.popup-open) .sptp-member-profession h4,
#sptp-13946.popup-open .sptp-member-profession h4,
#sptp-13946 .gridder-show .sptp-member-profession h4 {
  font-size: 1.375em;
  letter-spacing: 1px;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 500;
  color: #002f70;
}

#sptp-3344:not(.popup-open) .sptp-member-desc,
#sptp-7701:not(.popup-open) .sptp-member-desc,
#sptp-13946:not(.popup-open) .sptp-member-desc {
  font-family: "Open Sans", helvetica, arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  color: #444749;
  line-height: 2 !important;
  font-size: 1em;
}

#sptp-3344 .sptp-read-more-button a,
#sptp-7701 .sptp-read-more-button a,
#sptp-13946 .sptp-read-more-button a {
  color: #fff !important;
  background-color: #af1e39;
  border-radius: 0;
  border: 0;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 7px 20px;
  text-decoration: none !important;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-size: 24px;
  white-space: break-spaces;
}
#sptp-3344 .sptp-list .sptp-content,
#sptp-7701 .sptp-list .sptp-content,
#sptp-13946 .sptp-list .sptp-content {
  margin: auto;
}

#sptp-3344.popup-open .sptp-member-profession h4,
#sptp-7701.popup-open .sptp-member-profession h4,
#sptp-13946.popup-open .sptp-member-profession h4 {
  margin-bottom: 10px;
}

#sptp-3344
  > div.sptp-popup-item.sp-team-popup-item-section
  > div
  > div.sptp-member
  > div.sptp-member-desc,
#sptp-7701
  > div.sptp-popup-item.sp-team-popup-item-section
  > div
  > div.sptp-member
  > div.sptp-member-desc,
#sptp-13946
  > div.sptp-popup-item.sp-team-popup-item-section
  > div
  > div.sptp-member
  > div.sptp-member-desc {
  margin-top: 30px;
}

@media only screen and (max-width: 428px) {
  #sptp-3344 .sptp-read-more-button a,
  #sptp-7701 .sptp-read-more-button a,
  #sptp-13946 .sptp-read-more-button a {
    color: #fff !important;
    background-color: #af1e39;
    border-radius: 0;
    border: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 15px;
    text-decoration: none !important;
    font-family: "Teko", helvetica, arial, sans-serif;
    font-size: 16px !important;
    white-space: nowrap;
  }

  #sptp-3344:not(.popup-open) .sptp-member-name .sptp-name,
  #sptp-3344:not(.popup-open) .sptp-member-name sptp-name a,
  #sptp-3344.popup-open .sptp-member-name h2,
  #sptp-3344 .gridder-show .sptp-member-name h2,
  #wrapper #sptp-3344.popup-open .sptp-member-name h2,
  #sptp-7701:not(.popup-open) .sptp-member-name .sptp-name,
  #sptp-7701:not(.popup-open) .sptp-member-name sptp-name a,
  #sptp-7701.popup-open .sptp-member-name h2,
  #sptp-7701 .gridder-show .sptp-member-name h2,
  #wrapper #sptp-7701.popup-open .sptp-member-name h2,
  #sptp-13946:not(.popup-open) .sptp-member-name .sptp-name,
  #sptp-13946:not(.popup-open) .sptp-member-name sptp-name a,
  #sptp-13946.popup-open .sptp-member-name h2,
  #sptp-13946 .gridder-show .sptp-member-name h2,
  #wrapper #sptp-13946.popup-open .sptp-member-name h2 {
    font-size: 2em;
    line-height: 1em;
    color: #002f70;
    letter-spacing: 1.5px;
  }
}

/* HIMC STYLES */
#sptp-5706:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-5706:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-5706:not(.popup-open) .sptp-member-profession h4,
#sptp-5706 .sptp-member-desc,
#sptp-5706 .sptp-read-more-button {
  text-align: left !important;
}

#sptp-5706:not(.popup-open) .sptp-member-name .sptp-name,
#sptp-5706:not(.popup-open) .sptp-member-name sptp-name a,
#sptp-5706.popup-open .sptp-member-name h2,
#sptp-5706 .gridder-show .sptp-member-name h2,
#wrapper #sptp-5706.popup-open .sptp-member-name h2 {
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 700;
  font-size: 2.25em;
  line-height: 1.1em;
  color: #002f70;
  letter-spacing: 3px;
  margin-top: 0 !important;
}

#sptp-5706:not(.popup-open) .sptp-member-extra-fields .sptp-member-extra-info {
  font-size: 0.9em;
  letter-spacing: 1px;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 600;
  color: #002f70;
  text-align: left;
  padding-top: 5px;
}

#sptp-5706:not(.popup-open) .sptp-member-profession h4,
#sptp-5706.popup-open .sptp-member-profession h4,
#sptp-5706 .gridder-show .sptp-member-profession h4,
#sptp-5706:not(.popup-open) .sptp-member-profession h4 {
  font-size: 1.1em !important;
  letter-spacing: 1px !important;
  font-family: "Teko", helvetica, arial, sans-serif !important;
  font-weight: 500 !important;
  color: #002f70 !important;
  font-style: italic !important;
}

#sptp-5706 .sptp-member-extra-fields {
  font-size: 1.375em;
  letter-spacing: 1px;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-weight: 600;
  color: #002f70;
  padding-top: 2px;
}

#sptp-5706:not(.popup-open) .sptp-member-desc {
  font-family: "Open Sans", helvetica, arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  color: #444749;
  line-height: 2 !important;
  font-size: 1em;
}

#sptp-5706.popup-open .sptp-member-desc {
  font-family: "Open Sans", helvetica, arial, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  color: #444749;
  line-height: 2 !important;
  font-size: 1em;
}

#sptp-5706 .sptp-read-more-button a {
  color: #fff !important;
  background-color: #af1e39;
  border-radius: 0;
  border: 0;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 7px 20px;
  text-decoration: none !important;
  font-family: "Teko", helvetica, arial, sans-serif;
  font-size: 24px;
  white-space: break-spaces;
}
#sptp-5706 .sptp-list .sptp-content {
  margin: auto;
}

#sptp-5706.popup-open .sptp-member-profession h4 {
  margin-bottom: 10px;
}

#sptp-5706
  > div.sptp-popup-item.sp-team-popup-item-section
  > div
  > div.sptp-member
  > div.sptp-member-desc {
  margin-top: 30px;
}

#sptp-5706.popup-open .sptp-member-name h2 {
  margin-bottom: 7px !important;
}
#sptp-5706.popup-open .sptp-member-profession h4 {
  margin-top: 13px !important;
}
#sptp-5706 .filter-item .sptp-content {
  margin: auto !important;
}

/* HIMC BUTTON STYLES */
#sptp-5706 .filters-button-group button {
  color: #fff !important;
  background-color: #af1e39 !important;
  border-radius: 0 !important;
  border: 0 !important;
  letter-spacing: 5px !important;
  text-transform: uppercase !important;
  padding: 7px 20px !important;
  text-decoration: none !important;
  font-family: "Teko", helvetica, arial, sans-serif !important;
  font-size: 24px !important;
  white-space: break-spaces !important;
  color: #fff !important;
}

#sptp-5706 .filters-button-group button.is-checked {
  background-color: #f9c315 !important;
  color: #fff !important;
}

@media only screen and (max-width: 428px) {
  #sptp-5706 .filters-button-group button {
    color: #fff !important;
    background-color: #af1e39 !important;
    border-radius: 0 !important;
    border: 0 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    padding: 4px 15px !important;
    text-decoration: none !important;
    font-family: "Teko", helvetica, arial, sans-serif !important;
    font-size: 16px !important;
    white-space: nowrap !important;
    color: #fff !important;
  }
  #sptp-5706 .filters-button-group button.is-checked {
    background-color: #f9c315 !important;
    color: #fff !important;
  }
}

/* ==========================================================================
   Split Block Slider — uniform slide sizing + ACF caption overlay
   Add to understrap-child style.css (or the section partial in your SCSS)
   ========================================================================== */

.block_split-slider {
  --sbs-accent: #f0b323; /* gold subtitle — swap for brand gold */
  --sbs-scrim: 0, 22, 40; /* navy scrim, as R,G,B */
  --sbs-pad-x: 5.5%; /* left inset, matches the old artwork */
  --sbs-pad-y: 7%; /* bottom inset */
  --sbs-band: 40%; /* width of the vertical overlay panel */
  --sbs-band-feather: 0.18; /* fraction of the band's right edge that fades */
  --sbs-band-alpha: 0.72; /* panel opacity */
  --sbs-focus: 50% 50%; /* object-position — shift if a crop clips the subject */
  --sbs-min-h: 420px; /* floor when the copy column is short; set 0 to disable */
  --sbs-ratio: 4 / 3; /* slide ratio once the columns stack */
}

/* ==========================================================================
   1. Slide sizing — every upload crops to fill, whatever its native size
   ========================================================================== */

.block_split-slider .carousel-cell {
  position: relative;
  width: 100%;
}

.block_split-slider .carousel-cell > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the box, crop the overflow */
  object-position: var(--sbs-focus);
}

/* Columns side by side: the slider takes its height from the copy column --- */
@media (min-width: 768px) {
  .block_split-slider .row {
    align-items: stretch;
  }

  .block_split-slider .block_split-slider-left {
    display: flex;
    flex-direction: column;
    min-height: var(--sbs-min-h);
  }

  .block_split-slider .main-carousel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0; /* let the flex item shrink below content size */
  }

  /* Flickity writes an inline pixel height on the viewport, measured from its
       tallest cell. Override it so the slider tracks the copy column instead.
       (!important is required — it is beating an inline style.) */
  .block_split-slider .main-carousel .flickity-viewport {
    height: 100% !important;
  }

  .block_split-slider .main-carousel .flickity-slider {
    height: 100%;
  }

  .block_split-slider .carousel-cell {
    height: 100%;
  }
}

/* Columns stacked: nothing to match, so lock a uniform ratio --------------- */
@media (max-width: 767.98px) {
  .block_split-slider .carousel-cell {
    aspect-ratio: var(--sbs-ratio);
  }
}

/* ==========================================================================
   2. Caption overlay — replaces the text burned into the old artwork
   ========================================================================== */

/* Vertical overlay band — full height, ~40% of the slide width.
   Flat translucent panel on the left, feathered on its right edge so it
   blends into the photo instead of showing a hard seam. */
.block_split-slider .carousel-cell.has-caption::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sbs-band);
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(var(--sbs-scrim), var(--sbs-band-alpha)) 0%,
    rgba(var(--sbs-scrim), var(--sbs-band-alpha))
      calc(100% - (var(--sbs-band-feather) * 100%)),
    rgba(var(--sbs-scrim), 0) 100%
  );
}

.block_split-slider .carousel-cell .inner-text-wrapper {
  position: absolute;
  left: var(--sbs-pad-x);
  right: auto;
  bottom: var(--sbs-pad-y);
  /* stay inside the band, clear of its feathered edge */
  width: calc(
    var(--sbs-band) * (1 - var(--sbs-band-feather)) - var(--sbs-pad-x)
  );
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.block_split-slider .carousel-cell .inner-text-wrapper h3,
.block_split-slider .carousel-cell .inner-text-wrapper h4 {
  margin: 0;
  padding: 0;
  text-transform: none;
}

/* Stat line — "$62.8B" */
.block_split-slider .carousel-cell .inner-text-wrapper h3 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 5.5rem);
  line-height: 0.92;
  white-space: nowrap; /* never break a stat mid-value */
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(var(--sbs-scrim), 0.45);
}

/* Optional: smaller, raised currency mark (needs the PHP tweak) */
.block_split-slider .carousel-cell .inner-text-wrapper h3 .sbs-cur {
  font-size: 0.55em;
  vertical-align: 0.62em;
  letter-spacing: 0;
}

/* Label — "Generated in Tax Revenue" */
.block_split-slider .carousel-cell .inner-text-wrapper h4 {
  max-width: 12ch; /* forces the same 2-line wrap as the art */
  margin-top: 0.35em;
  color: var(--sbs-accent);
  font-size: clamp(1rem, 1.9vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(var(--sbs-scrim), 0.45);
}

/* Stacked layout — band and type rescale with the wider slide -------------- */
@media (max-width: 767.98px) {
  .block_split-slider {
    --sbs-pad-x: 6%;
    --sbs-pad-y: 8%;
    --sbs-band: 50%;
    --sbs-band-feather: 0.22;
  }
  .block_split-slider .carousel-cell .inner-text-wrapper h3 {
    font-size: clamp(1.75rem, 8vw, 3.25rem);
  }
  .block_split-slider .carousel-cell .inner-text-wrapper h4 {
    font-size: clamp(0.95rem, 3.6vw, 1.35rem);
    max-width: 14ch;
  }
}

/* Flickity leaves inactive cells in the DOM — keep them out of the a11y tree */
.block_split-slider .carousel-cell[aria-hidden="true"] .inner-text-wrapper {
  visibility: hidden;
}
