@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

.body.single-project #primary {
  width: 100%;
  margin: 0;
}

body.single-project #main {
  width: 100%;
  margin: 0;
}

.bsg-project-page {
  display: block;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
  color: #153a62;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
}

.bsg-project-container {
  width: min(1380px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   HERO — MATCH ELEMENTOR PROJECTS PAGE
   ========================================================= */

.bsg-project-hero {
  padding-top: 118px;
  background: #ffffff;
}

.bsg-project-hero-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 60px;
  align-items: end;

  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 58px;
}

.bsg-project-hero-text {
  min-width: 0;
}

.bsg-project-hero-cta {
  justify-self: end;
  align-self: end;
  margin: 0 0 3px;
}
/* Mobile CTA is hidden on desktop and tablet */
.bsg-project-mobile-cta {
  display: none;
}

/* Project title */
body.single-project h1.bsg-project-title {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: 900px !important;

  margin: 0 0 20px !important;
  padding: 0 !important;

  color: #153a62 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 60px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;

  z-index: auto !important;
}


/* Market label above project title */
.bsg-project-market {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 !important;

  color: #0071b5 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
}


/* Location */
.bsg-project-location {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;

  color: #687785 !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
}

/* Hero image */
.bsg-project-featured-image {
  position: relative;
  clear: both;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.bsg-project-featured-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(500px, 54vw, 720px);
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   PROJECT OVERVIEW + FACTS
   ========================================================= */

.bsg-project-intro {
  padding: 90px 0 100px;
}

.bsg-project-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 80px;
  align-items: start;
}

.bsg-project-section-label {
  margin: 0 0 30px;

  color: #0071b5;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bsg-project-section-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 18px;
  background: #0071b5;
}

.bsg-project-overview-text {
  max-width: 760px;

  color: #4d5d6b;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7em;
}

.bsg-project-overview-text p {
  margin: 0 0 22px;
}

.bsg-project-overview-text p:last-child {
  margin-bottom: 0;
}

.bsg-project-facts {
  padding-left: 42px;
  border-left: 1px solid rgba(21, 58, 98, 0.15);
}

.bsg-project-facts-list {
  margin: 0;
}

.bsg-project-fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 15px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(21, 58, 98, 0.12);
}

.bsg-project-fact:last-child {
  border-bottom: 1px solid rgba(21, 58, 98, 0.12);
}

.bsg-project-fact-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3px;
  color: #0071b5;
}

.bsg-project-fact-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bsg-project-fact dt {
  margin: 0 0 4px;
  color: #92989b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bsg-project-fact dd {
  margin: 0;
  color: #153a62;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
}

/* SECONDARY IMAGE */

.bsg-project-secondary-media {
  width: 100%;
  padding: 0;
}

.bsg-project-secondary-image {
  width: 100%;
  margin: 0;
}

.bsg-project-secondary-image img {
  display: block;
  width: 100%;
  height: clamp(340px, 36vw, 460px);
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   ENGINEERING HIGHLIGHTS
   ========================================================= */

.bsg-project-highlights {
  padding: 82px 0 55px;
  background: #ffffff;
}

.bsg-project-highlights-grid {
  display: grid;
  gap: 56px;
  width: 100%;
}

/* =========================================================
   1 HIGHLIGHT — centered on page
   ========================================================= */

.bsg-project-highlights
.bsg-project-container:has(.bsg-project-highlight:only-child) {
  width: min(760px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.bsg-project-highlights-grid:has(.bsg-project-highlight:only-child) {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.bsg-project-highlights-grid:has(.bsg-project-highlight:only-child)
.bsg-project-highlight-text {
  max-width: 600px;
}


/* =========================================================
   2 HIGHLIGHTS — two columns centered as a group
   ========================================================= */

.bsg-project-highlights
.bsg-project-container:has(
  .bsg-project-highlight:first-child:nth-last-child(2)
) {
  width: min(1120px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.bsg-project-highlights-grid:has(
  .bsg-project-highlight:first-child:nth-last-child(2)
) {
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
}


/* =========================================================
   3 HIGHLIGHTS — normal full-width layout
   ========================================================= */

.bsg-project-highlights-grid:has(
  .bsg-project-highlight:first-child:nth-last-child(3)
) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsg-project-highlight {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: start;
  padding: 0;
  border: 0;
}

.bsg-project-highlight-icon {
  grid-column: 1;
  grid-row: 1 / 3;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;
  margin: 0;

  border: 1px solid rgba(0, 113, 181, 0.25);
  border-radius: 50%;
  background: rgba(0, 113, 181, 0.045);
}

.bsg-project-highlight-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #0071b5;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bsg-project-highlight h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;

  margin: 0 0 10px;
  color: #153a62;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bsg-project-highlight-text {
  grid-column: 2;
  grid-row: 2;

  max-width: 520px;
  color: #5d6c78;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.bsg-project-highlight-text p {
  margin: 0 0 18px;
}

.bsg-project-highlight-text p:last-child {
  margin-bottom: 0;
}
/* =========================================================
   MARKET CTA BUTTON
   ========================================================= */

.bsg-project-market-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  min-height: 54px;
  padding: 0 28px;

  border: 1px solid #10273c;
  background-color: transparent;

  color: #10273c;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.8px;
  text-decoration: none;
  text-transform: uppercase;

  transform: scale(1);

  transition:
    transform 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease;
}

.bsg-project-market-button:hover,
.bsg-project-market-button:focus {
  background-color: transparent;
  color: #00518a;
  border-color: #00518a;
  transform: scale(1.04);
}

.bsg-project-market-button-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.5s ease;
}

.bsg-project-market-button:hover .bsg-project-market-button-arrow,
.bsg-project-market-button:focus .bsg-project-market-button-arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {

  .bsg-project-intro-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .bsg-project-facts {
    padding-left: 0;
    border-left: 0;
  }

  .bsg-project-highlights-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .bsg-project-highlight-text {
    max-width: none;
  }

}

/* MOBILE */

@media (max-width: 767px) {

  .bsg-project-container {
    width: min(100% - 32px, 1200px);
  }

  /*
   * Keep the hero itself from adding another 48px on top.
   * The spacing is now controlled by .bsg-project-hero-copy.
   */
  /* Parent hero spacing — matches Markets mobile hero */
.bsg-project-hero {
  padding-top: 80px !important;
  background: #ffffff;
}

  /* Mobile hero layout */
.bsg-project-hero-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 30px !important;

  width: calc(100% - 48px) !important;
  min-height: auto !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding: 0 0 40px !important;
  box-sizing: border-box;
}

 /* Additional text-container spacing used on Markets page */
.bsg-project-hero-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;

  width: 100% !important;
  min-width: 0 !important;

  padding-top: 20px !important;
}

  body.single-project h1.bsg-project-title {
    font-size: 42px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
  }

  .bsg-project-market {
    margin-bottom: 20px !important;
  }

  .bsg-project-location {
    margin-top: 0 !important;
    font-size: 22px;
  }
/* Hide the original button located above the image */
.bsg-project-hero-cta {
  display: none !important;
}

/* Display the mobile button located after the featured image */
.bsg-project-mobile-cta {
  display: block !important;
  width: calc(100% - 48px);
  margin: 28px auto 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mobile button styling */
.bsg-project-mobile-cta .bsg-project-market-button {
  display: flex !important;
  width: 100% !important;
  min-height: 56px;
  padding: 0 20px;
  font-size: 13px;
}
  

 

  /*
   * Creates breathing room between the hero content/button
   * and the large project image.
   */
  .bsg-project-featured-image {
  width: 100%;
  margin-top: 0;
}

  .bsg-project-featured-image img {
    width: 100%;
    height: auto !important;
    object-fit: initial;
}

  .bsg-project-intro {
    padding: 72px 0;
  }

  .bsg-project-intro-grid {
    gap: 52px;
  }

  .bsg-project-overview-text {
    font-size: 18px;
    line-height: 1.7em;
  }

  .bsg-project-secondary-media {
    padding: 0;
  }

  .bsg-project-secondary-image img {
    width: 100%;
    height: auto !important;
    object-fit: initial;
}

  .bsg-project-highlights {
    padding: 72px 0 90px;
  }

  .bsg-project-highlight-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .bsg-project-highlight {
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 16px;
  }

  .bsg-project-highlight-icon {
    width: 46px;
    height: 46px;
  }

  .bsg-project-highlight-icon svg {
    width: 23px;
    height: 23px;
  }
}
/* =========================================================
   SINGLE PROJECT — GLOBAL TYPOGRAPHY CONSISTENCY
   ========================================================= */

body.single-project .bsg-project-page,
body.single-project .bsg-project-page button,
body.single-project .bsg-project-page input,
body.single-project .bsg-project-page textarea,
body.single-project .bsg-project-page select {
  font-family: "Roboto", Arial, sans-serif;
}
/* =========================================================
   SINGLE PROJECT — ALIGN TEXT WITH MARKET PAGE HERO
   Only changes the text block position
   ========================================================= */

@media (min-width: 1025px) {

    /* Use the same 1280px centered content line as Markets pages */
    .bsg-project-hero-copy {
        width: min(1280px, calc(100% - 80px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Place the project text at the same vertical starting point */
    .bsg-project-hero-text {
        align-self: start !important;
        padding-top: 58px !important;
    }

    /* Match the spacing pattern without changing typography */
    .bsg-project-market {
        margin-bottom: 20px !important;
    }

    .bsg-project-title {
        margin-bottom: 20px !important;
    }
}
/* =========================================================
   PROJECT EXPERIENCE DISCLAIMER
   ========================================================= */

.bsg-project-disclaimer {
    padding: 35px 0 40px;
}

.bsg-project-disclaimer p {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;

    color: #92989B;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    font-style: italic;
}

/* =========================================
   PROJECT TESTIMONIAL
   ========================================= */

.bsg-project-testimonial {
    padding: 100px 0;
    background: #f7f9fb;
}

.bsg-project-testimonial-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.bsg-project-testimonial-mark {
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 0.7;
    color: #4c9bd5;
    margin-bottom: 30px;
}

.bsg-project-testimonial blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 27px;
    line-height: 1.65;
    font-weight: 300;
    color: #173f6b;
}

.bsg-project-testimonial-author {
    margin: 30px 0 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #5f6f7f;
}


/* Mobile */
@media (max-width: 767px) {

    .bsg-project-testimonial {
        padding: 65px 0;
    }

    .bsg-project-testimonial-inner {
        max-width: 100%;
    }

    .bsg-project-testimonial-mark {
        font-size: 70px;
        margin-bottom: 22px;
    }

    .bsg-project-testimonial blockquote {
        font-size: 21px;
        line-height: 1.6;
    }

    .bsg-project-testimonial-author {
        margin-top: 24px;
        font-size: 14px;
    }
}