/* * {
  border: 1px solid salmon !important;
} */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh; /* Full viewport height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Background gradient */
.hero .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background-image: url("/wp-content/uploads/2025/08/Asset-12.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Foreground hero image */
.hero img.fg {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: bottom right;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  /* border: 1px solid red; */
  padding: 12rem 2rem 14rem 4rem;
}

.hero-content h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 5rem;
  color: #cce7e9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: transparent;
  border: 2px solid #25cad5;
  color: #25cad5;
}

.btn-primary:hover {
  background: #25cad5;
  color: white;
}

.btn-dark {
  background: #2c2a2a;
  color: white;
  border: 2px solid #25cad5;
}

.btn-dark:hover {
  background: #fb5607;
  border-color: #fb5607;
}

.entry-content h4 {
  font-weight: 400;
}
.related-posts {
  border: none;
  margin: 0;
  padding: 2rem 0;
}
.related-posts h3 {
  font-size: 3rem !important;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.meta {
  position: absolute;
  bottom: 0;
  z-index: 2;
  height: 80px;
  background: white;
  width: 100%;
}
.meta-content {
  display: flex;
  gap: 2rem;
  height: 100%;
  align-items: center;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 2rem 0 4rem;
}

.meta span {
  font-weight: bold;
  color: #25cad5;
}
.meta-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.meta-content > div + div {
  position: relative;
  padding-left: 2rem;
}

.meta-content > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.2em;
  background: #25cad5; /* teal divider */
}

.label {
  text-transform: uppercase;
  font-weight: 700;
  color: #25cad5; /* teal */
  letter-spacing: 0.1em;
}
.value {
  font-style: italic;
  font-family: "Playfair Display", Serif;
  color: rgb(37, 37, 37) !important;
  padding-left: 10px;
  font-weight: 500 !important;
  font-size: 1.2rem;
}

.custom-single-post-container {
  width: calc(100% - 2rem);
  max-width: 1290px;
  margin: 0 auto !important;
  padding: 0 2rem 0 4rem;
  color: #b2b2b2;
  background-color: unset;
  border-radius: unset;
  box-shadow: unset;
}

/* Two-column section */
.cs-section {
  padding: 4rem 0 0;
  position: relative;
}
.cs-grid {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 3rem;
}
.cs-main {
  color: #e8f4f5;
  padding-right: 2rem;
}
.cs-main h2,
.cs-main h3 {
  color: #25cad5; /* Peacock accent for headings */
}
.cs-main p {
  margin-top: 2rem;
}

/* Pills / aside */
.cs-aside h3 {
  color: #25cad5;
  margin: 0 0 1rem;
  font-family: "Open Sans" !important;
  font-weight: 700;
  font-size: 1.3rem !important;
}
h3.wp-block-heading {
  font-family: "Open Sans" !important;
  font-weight: 700;
  font-size: 1.3rem !important;
  margin: 2rem 0 1rem 0;
}
.cs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.75rem;
  margin: 0;
  padding: 0;
}
.cs-pill {
  list-style: none;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: transparent;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.wp-block-separator {
  border-top: 1px solid #25cad5;
  margin: 4rem 0;
}
ul.wp-block-list li {
  color: #ffffff;
}

/* Two-column flow for the "below the hr" content */
.cs-section--two-cols {
  padding: 2.5rem 0;
}
.cs-two-cols {
  column-count: 2;
  column-gap: 2.5rem;
}

/* Avoid awkward breaks */
.cs-two-cols > * {
  break-inside: avoid;
}
.cs-two-cols img,
.cs-two-cols figure,
.cs-two-cols .wp-block-image {
  break-inside: avoid;
  max-width: 100%;
  height: auto;
}

/* Make headings span both columns so they act as section dividers */
.cs-two-cols h2,
.cs-two-cols h3,
.cs-two-cols h4 {
  column-span: all;
}

/* Make this block span both columns of .cs-grid */
.grid-span-all {
  grid-column: 1 / -1;
}

.grid-span-all p {
  color: #ffffff;
  margin-bottom: 2rem;
}

/* Two-column flow for the content below the <hr> */
.cs-section--two-cols {
  padding: 2.5rem 0;
}
.cs-two-cols {
  column-count: 2;
  column-gap: 2.5rem;
}

/* Avoid awkward breaks & keep media sane */
.cs-two-cols > * {
  break-inside: avoid;
}
.cs-two-cols img,
.cs-two-cols figure,
.cs-two-cols .wp-block-image {
  break-inside: avoid;
  max-width: 100%;
  height: auto;
}

/* Make headings span both columns to act as dividers */
.cs-two-cols h2,
.cs-two-cols h3,
.cs-two-cols h4 {
  column-span: all;
}

.grid-span-all {
  grid-column: 1 / -1;
}

.cs-two-cols {
  column-count: 2;
  column-gap: 2.5rem;
}
.cs-two-cols > * {
  break-inside: avoid;
}
.cs-two-cols h2,
.cs-two-cols h3,
.cs-two-cols h4 {
  column-span: all;
}

body:not([class*="elementor-page-"]) .site-main {
  max-width: unset !important;
}

@media (max-width: 1314px) {
  .custom-single-post-container {
    padding: 0 3rem;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    padding: 10rem 2rem;
  }
  .meta-content {
    padding: 0 2rem;
  }
  .custom-single-post-container {
    padding: 0 2rem;
    margin: 0 !important;
    width: 100%;
  }
}
@media (max-width: 575px) {
  .custom-single-post-container {
    padding: 0 1rem;
  }
  .cs-section {
    padding: 2rem 7px;
  }
}

/* --------------------------------------------------------------------------------------------------------------------------------------------
   Case Study Index – full-width cards
   Scoped under .cs-cards so blog grid stays untouched
   -------------------------------------------------------------------------------------------------------------------------------------------- */

/* Page container */
.cs-cards .blog-grid-container {
  padding: 0; /* outer section padding */
}

/* One card per row, centered within a wide page container */
.cs-cards .blog-grid {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr; /* force 1 per row */
  gap: 48px; /* space between cards */
}

/* Card layout: text left, image right */
.cs-cards .blog-grid-item.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  align-items: stretch;
  border-radius: 32px;
  background: #2c2a2a;
  box-shadow: -1px 6px 22px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cs-cards .blog-grid-item.case-card:hover {
  transform: translateY(-4px);
  box-shadow: -1px 10px 28px 10px rgba(0, 0, 0, 0.5);
}

/* Image column (right) */
.cs-cards .blog-grid-item.case-card .blog-grid-image {
  grid-column: 2 / 3;
  height: auto; /* override blog’s fixed height */
  min-height: 260px;
}

.cs-cards .blog-grid-item.case-card .blog-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none; /* kill blog hover zoom */
}

/* Content column (left) */
.cs-cards .blog-grid-item.case-card .blog-grid-content {
  grid-column: 1 / 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: auto;
}

/* Case Studies Grid Overrides */
.blog-grid-item {
  position: relative;
  border-radius: 30px;
  box-shadow: -1px 4px 17px 6px rgba(0, 0, 0, 0.4);
  background-color: #2c2a2a;
  background-size: 100%; /* image scales nicely in bottom corner */
  background-repeat: no-repeat;
  background-position: bottom right;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 300px; /* adjust depending on your design */
}

.blog-grid-content {
  position: relative;
  z-index: 2; /* ensures text sits on top */
  max-width: 60%; /* keep text compact on left side */
}
.blog-grid-container {
  padding: 0;
}
.blog-grid-title {
  padding-bottom: 2rem;
}
.blog-grid-date {
  display: none;
}

.blog-grid-categories {
  margin-left: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 6px;
  color: #26cad5;
  font-size: 12px;
  padding-bottom: 1rem;
  display: block;
}

.cs-filter-btn {
  background-color: #2f3333;
  color: #ffffff;
  font-family: "Playfair Display", Serif;
  font-size: 16px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-text);
  border-radius: 28px 28px 28px 28px;
  margin-bottom: 6px;
}

/* pressed/on state */
.cs-filter-btn[aria-pressed="true"] {
  background: #24cad5; /* Onyx */
  color: #2c2a2a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

/* default/off */
.cs-filter-btn[aria-pressed="false"] {
  background-color: #2f3333;
  color: #ffffff;
  font-family: "Playfair Display", Serif;
  font-size: 16px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-text);
  border-radius: 28px 28px 28px 28px;
}

/* hover hint for off buttons */
.cs-filter-btn[aria-pressed="false"]:hover {
  border-color: #25cad5; /* Peacock */
}

/* focus ring (keyboard accessible) */
.cs-filter-btn:focus-visible {
  outline: 2px solid #25cad5;
  outline-offset: 2px;
}

/* (nice to have) smooth transitions */
.cs-filter-btn {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.blog-grid-title,
.blog-grid-excerpt,
.blog-grid-meta,
.read-more {
  color: #fff;
}

/* Meta row */
.cs-cards .blog-grid-meta {
  color: #cbd5d7;
  font-size: 0.9rem;
  margin: 0;
}

/* Title – bigger for heroish feel */
.cs-cards .blog-grid-title {
  color: #fff;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem) !important;
  line-height: 1.2 !important;
  margin: 0.25rem 0 1rem;
}

/* Excerpt optional */
.cs-cards .blog-grid-excerpt {
  color: #b2b2b2;
}

/* Read link as button-ish */
.cs-cards .read-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid #24cad5;
  border-radius: 999px;
  color: #24cad5;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cs-cards .read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}
.cs-cards .blog-grid-item.case-card:hover .read-more {
  background: #24cad5;
  color: #0e1111;
}
.cs-cards .blog-grid-item.case-card:hover .read-more::after {
  transform: translateX(3px);
}
.btn-dark:hover {
  color: #fff;
}
.btn-primary {
  color: #fff;
}

/* Overlay link stays on top */
.cs-cards .blog-grid-overlay-link {
  z-index: 3;
}

/* Gate card uses the case study featured image */
.cs-gate-wrap {
  position: relative;
  border-radius: 32px;
  background: #2c2a2a;
  /* left-to-right fade so text stays readable, then the image */
  background-image:
    linear-gradient(
      90deg,
      rgba(44, 42, 42, 0.96) 0%,
      rgba(44, 42, 42, 0.9) 20%,
      rgba(44, 42, 42, 0.7) 60%,
      rgba(44, 42, 42, 0) 90%
    ),
    var(--cs-bg);
  background-position: bottom right;
  background-size: cover;
  box-shadow: 0px -13px 20px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5rem;
  text-align: center;
  padding: 4rem;
}
.cs-gate-tag,
.cs-pd-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #25cad5;
  font-weight: 700;
  margin-bottom: 1.4rem;
  display: block;
  letter-spacing: 2px;
}
.cs-gate-description {
  max-width: 400px;
  margin: 2rem auto;
  color: #fff;
}
.cs-pd-gate {
  /* form itself is transparent; wrapper owns the “card” look */
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  width: 100%;
  max-width: 720px; /* keep the form text nice and left-aligned */
}

.cs-pd-gate input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #25cad5;
  background: #00000066;
  color: #fff;
  outline: none;
  margin-bottom: 0.75rem;
  text-align: center;
  margin-top: 1rem;
}
.cs-pd-gate input[type="email"]::placeholder {
  color: #9acdd1;
}
.cs-pd-btn {
  background-color: #02010100;
  font-family: "Playfair Display", Serif;
  font-size: 16px !important;
  border-style: solid !important;
  border-width: 1px 1px 1px 1px !important;
  border-color: var(--e-global-color-text) !important;
  border-radius: 28px 28px 28px 28px !important;
  color: #fff !important;
  margin-top: 1.4rem;
}
.cs-pd-btn:hover {
  background: #24cad5 !important;
  color: #0e1111 !important;
}

/* success state keeps the card background */
.cs-gate-wrap.cs-gate-complete {
  background-image:
    linear-gradient(
      90deg,
      rgba(44, 42, 42, 0.96) 0%,
      rgba(44, 42, 42, 0.9) 20%,
      rgba(44, 42, 42, 0.7) 60%,
      rgba(44, 42, 42, 0) 90%
    ),
    var(--cs-bg);
  background-position: bottom right;
  background-size: cover;
  box-shadow: -1px 6px 22px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5rem;
  text-align: center;
  padding: 4rem;
  justify-content: center;
  color: #fff;
}
.cs-pd-success,
.cs-pd-or {
  color: #ffffff !important;
}
.cs-pd-success .cs-pd-open,
.cs-pd-download {
  font-weight: 700;
  text-decoration: underline;
  color: #24cad5;
}
.cs-pd-success .cs-pd-or {
  margin: 0 0.4rem;
  color: #666;
}

/* mobile */
@media (max-width: 980px) {
  .cs-pd-gate {
    max-width: 100%;
  }
  .cs-pd-label {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  .cs-gate-wrap {
    background-position: 80% 100%;
    padding: 3rem;
  }
}

/* Responsive: stack image below on small screens */
@media (max-width: 980px) {
  .cs-cards .blog-grid-item.case-card {
    grid-template-columns: 1fr;
  }
  .cs-cards .blog-grid-item.case-card .blog-grid-image {
    grid-column: 1 / -1;
    min-height: 200px;
    order: 2; /* image after content; remove if you want it first */
  }
  .cs-cards .blog-grid-item.case-card .blog-grid-content {
    order: 1;
    padding: 1.25rem 1.25rem 1rem;
  }
  .blog-grid-item {
    padding: 1rem;
  }
}

@media (max-width: 980px) {
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cs-two-cols {
    column-count: 1;
  }
  .value,
  .label {
    font-size: 0.8rem;
  }
  .meta-content {
    gap: 1rem;
  }
  .meta-content > div + div {
    padding-left: 1rem;
  }
  .blog-grid-content {
    max-width: 90%;
  }
}

/* Mobile */
@media (max-width: 980px) {
  .cs-two-cols {
    column-count: 1;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-aside {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 760px) {
  .hero-content {
    padding: 10rem 2rem;
  }
  .value,
  .label {
    display: block;
    padding-left: 0;
  }
  .meta-content > div + div::before {
    height: 2em;
  }
}
