:root {
  --primary: #34568B;
  --secondary: #F06C00;
  --light: #f9f9f9;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: #F0ECE4;
  min-height: 100vh;
  height: auto !important; /* Override global styles */
  overflow-y: auto;
}

section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.Sainsburys-hero-section,
.Sainsburys-hero-image {
      position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.Sainsburys-heading-bg {
  width: 100vw;     
  height: auto;
  display: block;
  position: relative;
  top: 0;
  object-fit: cover; /* Ensures the image covers the area */
}


.Sainsburys-hero-text {
  position: absolute;
  top: 60px;
  right: 0;
  width: 50%;
  max-width: 700px;
  color: #f9f9f9; /* Change if you want */
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2;
  background: none; /* No background */
}

.Sainsburys-hero-text h1 {
  font-size: 4rem;
  font-weight: bold;
  color: #F06C00;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  padding-right: 100px;
  background: none;
}

.project-overview h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #f9f9f9;
  padding-right: 100px;
  background: none;
    border-bottom: none !important;
}

.project-overview p {
  font-size: 1.15rem;
  color: #f9f9f9;
  margin: 0;
  max-width: 38em;
  padding-right: 100px;
  background: none;
}

/* Responsive for smaller screens */
@media (max-width: 900px) {
  /* Sainsburys hero section fixes */
  .Sainsburys-hero-text {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: break-word;
  }
  
  .Sainsburys-hero-text h1 {
    font-size: 2rem; /* Adjust font size if needed */
    width: 100%;
    text-align: right;
    margin: 0 auto;
    word-break: break-word;
  }
  
  /* Project overview section fixes */
  .project-overview {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    
  }
  
  .project-overview h2 {
    width: 100%;
    font-size: 1.2rem; /* Adjust as needed */
    text-align: right;
  }
  
  .project-overview p {
    width: 100%;
    padding-left: 0; /* Remove the debug padding */
    padding-right: 0;
    padding-top: 20px;
    box-sizing: border-box;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;

  }
}

/* Info section */
.Sainsburys-info-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -55px;
  margin-bottom: 0px;
  width: 100vw;
  max-width: 100%;
}

.Sainsburys-info-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-blue);
  padding-left: 0;
  padding-right: 0;
}

.Sainsburys-info-left {
  align-items: center;
  padding-left: 100px;
}

.Sainsburys-info-center {
  align-items: center;
}

.Sainsburys-info-right {
  align-items: center;
  padding-right: 100px;
}

.Sainsburys-info-column h3 {
  font-weight: bold;
  font-size: 1.35rem;
  margin-bottom: 0.7em;
  color: var(--primary);
  text-align: center;
}

.Sainsburys-info-content {
  font-weight: normal;
  font-size: 1.12rem;
  color: var(--primary);
  text-align: center;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .Sainsburys-info-left { padding-left: 40px; }
  .Sainsburys-info-right { padding-right: 40px; }
}

@media (max-width: 900px) {
  
  .Sainsburys-info-section {
    width: 90%;
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    gap: 24px;
  }
  .Sainsburys-info-left,
  .Sainsburys-info-right,
  .Sainsburys-info-center {
    padding-left: 0;
    padding-right: 0;
    align-items: center;
  }
  .Sainsburys-info-column h3 {
    text-align: center;
  }
}

.Sainsburys-secondary-divider {
  border: none;
  height: 3px;
  background: var(--secondary);
  border-radius: 2.5px;
margin: -30px 75px 0 75px;
}




/* Aim and problem */
.Sainsburys-problem-aim-section {
  padding-top: 30px !important;
    padding-bottom: 60px !important;
}

.Sainsburys-problem-aim-section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0px; /* Adjust as needed for spacing above */
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

/* LEFT COLUMN */
.Sainsburys-problem-aim-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.Sainsburys-problem-aim-left {
  align-items: flex-start;
  padding-left: 60px;
  max-width: 350px;
  min-width: 180px;
  position: relative;
}

.Sainsburys-problem-aim-block {
  margin-bottom: 0;
}

.Sainsburys-problem-aim-title {
  font-weight: bold;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5em;
}

.Sainsburys-problem-aim-text {
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
    word-break: break-word; 
}

/* RIGHT COLUMN */
.Sainsburys-problem-aim-right {
  position: relative;
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
  padding-right: 60px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.Sainsburys-problem-aim-right-block {
  margin-bottom: 0;
  /* This will be aligned with the left block via margin-top if needed */
}

.Sainsburys-problem-aim-right-text {
  font-size: 1.12rem;
  color: var(--primary);
  font-weight: normal;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word; 
}

/* ALIGNMENT HELPERS: match vertical position of right text to left heading */
.Sainsburys-problem-aim-right-block.problem {
  margin-top: 0; /* align to The Problem title */
}

.Sainsburys-problem-aim-right-block.aim {
  /* Find the offset of The Aim, which is 30px (margin-top) + title height + bottom margin */
  margin-top: 60px; /* same as left .Sainsburys-problem-aim-block margin-top */
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .Sainsburys-problem-aim-left,
  .Sainsburys-problem-aim-right {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 800px) {
  .Sainsburys-problem-aim-section {
    flex-direction: column;
    gap: 36px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
  }
  .Sainsburys-problem-aim-left,
  .Sainsburys-problem-aim-right {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .Sainsburys-problem-aim-right-text {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
}



.Sainsburys-userflow-img {
  display: block;
  width: calc(100% - 50px); /* Full width minus padding */
  max-width: 100%;
    margin-left: 25px;
    margin-right: 25px;
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 0;
  height: auto;
  box-sizing: border-box;
}


.Sainsburys-live-research-img {
  display: block;
  width: 100%;
  height: auto;
  padding-left: 125px;
  padding-right: 125px;
  margin-top: 20px;
  margin-bottom: 40px;
  box-sizing: border-box;
}


/* Responsive: reduce horizontal padding on smaller screens */
@media (max-width: 900px) {
  .Sainsburys-userflow-img {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100vw - 40px);
  }
}

.Sainsburys-live-research-img {
    padding-left: 20px;
    padding-right: 20px;
    width: calc(100vw - 40px);
    margin-left: 0;
    margin-right: 0;
}

.Sainsburys-final-img-1 {
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 40px;
}

.Sainsburys-final-img-2 {
    display: block;
    width: 100%;
    margin-top: 40px;
}