/* Case Studies tabbed page template - colors match the USCO logo (orange + dark grey) */

/* Full-bleed hero. It renders directly inside #et-main-area (opened in
   header.php), above the width-constrained .container, so a plain 100%
   width already spans the true page width - no need for the 100vw/
   negative-margin breakout trick, which caused a horizontal scrollbar
   because 100vw includes the scrollbar's own width. */
/* .usco-cs-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: #4b4f54;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.usco-cs-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(20, 22, 24, 0.55) 0%, rgba(20, 22, 24, 0.72) 100%);
}

.usco-cs-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.usco-cs-hero-title {
  color: #ffffff;
  font-size: 50px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.usco-cs-hero-title:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: #f37720;
  border-radius: 2px;
}

.usco-cs-hero-subtitle {
  max-width: 640px;
  margin: 18px auto 0;
  color: #f2f2f2;
  font-size: 17px;
  font-weight: 500;
  line-height: 155%;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
} */

.usco-cs-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.usco-cs-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.usco-cs-hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.usco-cs-hero-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
}

.usco-cs-hero-title {
  color: #ffffff;
  font-size: 56px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.usco-cs-hero-subtitle {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.usco-cs-location>span {
  color: #f37720;
  text-transform: uppercase;
}

/* No sidebar on this template, so let the content area use the full container width. */
.usco-cs-content-area#content-area,
.usco-cs-content-area #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Divi draws a vertical divider line between content and sidebar; remove it since
   this template has no sidebar. */
body.page-template-page-case-studies-php #main-content .container:before {
  display: none !important;
}

.usco-cs-page-title {
  color: #4b4f54;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
}

.usco-cs-intro {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
  color: #7d7d7d;
}

.usco-cs-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 30px;
  padding-bottom: 0;
}

.usco-cs-tab {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #7d7d7d;
  background: #e4e6e8;
  border: 1px solid #d8dadc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 12px 22px;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.2s ease, background 0.2s ease;
}

.usco-cs-tab:hover {
  color: #f37720;
}

.usco-cs-tab.is-active {
  color: #ffffff;
  background: #f37720;
  border-color: #f37720;
}

.usco-cs-panel {
  display: none;
}

.usco-cs-panel.is-active {
  display: block;
  animation: usco-cs-fade 0.25s ease;
}

@keyframes usco-cs-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.usco-cs-panel-image {
  margin: 0px 0 30px;
  border-radius: 6px;
  overflow: hidden;
}

.usco-cs-panel-image-img {
  display: block;
  width: 100%;
  /*   max-height: 360px; */
  object-fit: cover;
}

.usco-cs-panel-header {
  display: block;
}

.usco-cs-panel-title {
  color: #4b4f54;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 6px;
}

.usco-cs-duration {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

span.usco-cs-duration-text {
  display: flex;
  gap: 2px;
  flex-direction: row;
  align-items: center;
}

span.usco-cs-duration-text>span.dur {
  font-weight: 600;
}

.usco-cs-duration-icon svg {
  width: 30px;
  height: 30px;
  fill: #cccaca;
  margin-top: 3px;
}

span.usco-cs-duration-text {
  line-height: 10px;
}

.usco-cs-duration-value {
  font-size: 14px;
  line-height: 16px;
}

.usco-cs-duration-label {
  font-size: 13px;
  color: #9a9a9a;
}

.usco-cs-duration-label {
  font-weight: 700;
  color: #4b4f54;
}

.usco-cs-subhead {
  font-weight: 600;
  margin-top: 0;
  font-size: 17px;
  color: #f37720;
  padding-bottom: 10px;
}

.usco-cs-panel-body table.usco-cs-meta-table tbody tr:last-child td {
  padding-bottom: 20px;
}

.usco-cs-panel-body table.usco-cs-meta-table tbody tr:first-child td {
  padding-top: 20px;
}

.usco-cs-scope {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: #4b4f54;
  margin: 0 0 20px;
  line-height: 20px;
  padding-right: 5%;
}

.usco-cs-scope-label {
  flex: 0 0 auto;
  font-weight: 700;
  text-transform: uppercase;
}

.usco-cs-panel-body {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.usco-cs-panel-body table.usco-cs-meta-table {
  background: #f5f7f9;
  box-shadow: 2px 3px 11px 1px #ddd;
}

.usco-cs-panel-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.usco-cs-panel-main table {
  max-width: 100%;
}

.usco-cs-panel-side {
  flex: 0 0 280px;
  width: 280px;
}

.usco-cs-map {
  width: 100%;
  margin-top: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f7f9;
}

.usco-cs-panel-side>.usco-cs-map:first-child {
  margin-top: 0;
}

.usco-cs-map iframe,
.usco-cs-map img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.usco-cs-location {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #4b4f54;
  line-height: 17px;
  padding: 0 15px;
}

.usco-cs-client-logos-wrap {
  margin: 0;
  padding: 0;
  border: none;
}

.usco-cs-client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.usco-cs-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 84px;
  height: 73px;
  padding: 0;
  border: none;
  background: none;
}

.usco-cs-client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.usco-cs-meta-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 24px;
}

.usco-cs-meta-table th {
  width: 250px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  font-weight: 700;
  color: #4b4f54;
  background: #f5f7f9;
  padding: 10px 10px;
}

.usco-cs-meta-table td {
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  color: #4b4f54;
  padding: 10px 10px;
  line-height: 17px;
}

p.usco-cs-location {
  display: flex;
  flex-direction: column;
}

.usco-cs-quote {
  margin: 0 0 10px;
  padding: 0;
  font-weight: 600;
  font-style: normal;
  color: #4b4f54;
  line-height: 150%;
  background: none;
  border: none;
}

.usco-cs-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.usco-cs-gallery-item {
  display: block;
  width: 180px;
  height: 130px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #eaeaea;
}

.usco-cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.usco-cs-section {
  margin-bottom: 26px;
}

.usco-cs-section h3 {
  color: #f37720;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0;
  /* margin-bottom: 8px; */
  font-weight: 700;
}

.usco-cs-section p {
  color: #4b4f54;
  line-height: 165%;
}

.usco-cs-services-table td h4 {
  margin: 0;
  color: #4b4f54;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* "The Result" is the headline takeaway of each case study, so it gets its
   own branded, orange, watermarked callout instead of a plain text block. */
.usco-cs-result {
  position: relative;
  overflow: hidden;
  background: #dcdcdc47;
  border-radius: 6px;
  padding: 26px 28px;
}

.usco-cs-result-watermark {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 220px;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.usco-cs-result h3 {
  position: relative;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.usco-cs-cta {
  background: #4b4f54;
  color: #ffffff;
  border-radius: 4px;
  padding: 20px 24px;
  margin-top: 30px;
  text-align: center;
}

.usco-cs-cta p {
  margin: 0 0 10px;
  font-size: 17px;
  color: #ffffff;
}

.usco-cs-cta a {
  display: inline-block;
  margin-top: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

.usco-cs-related-link {
  display: inline-block;
  margin-top: 4px;
  color: #ffffff;
  background: #f37720;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none !important;
}

.usco-cs-duration span.calIcon {
  width: 26px;
}

/* =====================================================================
   RESPONSIVE - all media queries live here, ordered from large to small
   screens (desktop -> laptop -> tablet -> phone). Keep new rules here.
   ===================================================================== */

@media only screen and (max-width: 900px) {
  .usco-cs-panel-body {
    flex-direction: column;
  }

  .usco-cs-panel-side {
    flex: 0 0 auto;
    width: 100%;
  }

  .usco-cs-map {
    height: 220px;
  }
}

@media only screen and (max-width: 767px) {
  .usco-cs-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .usco-cs-tab {
    border-radius: 4px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 0;
  }

  .usco-cs-meta-table th {
    width: 120px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .usco-cs-meta-table td {
    font-size: 13px;
    padding: 8px 10px;
  }

  .usco-cs-panel-title {
    font-size: 24px;
  }

  .usco-cs-hero {
    height: 260px;
  }

  /* The hero photo has "ILLUMINATING THE UNSEEN" baked into its lower-left
     corner; the short mobile crop left it half cut off under the title.
     Make the image taller than the box and anchor it to the top so that strip
     falls outside the visible area. */
  .usco-cs-hero-img {
    height: 135%;
    object-position: center top;
  }

  /* Divi adds 58px of padding above the content container, which left a large
     gap between the hero and the tabs on phones. */
  body.page-template-page-case-studies-php #main-content .container {
    padding-top: 24px;
  }

  .usco-cs-tabs {
    margin-top: 0;
    margin-bottom: 24px;
  }

  .usco-cs-hero-title {
    font-size: 30px;
  }

  .usco-cs-hero-subtitle {
    font-size: 15px;
    margin-top: 12px;
  }
}
