.research-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111;
}

.research-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3rem 1rem;
    flex-wrap: wrap; /* for responsive stacking on small screens */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* allow transition when hovering */
}

.research-section-separator {
    height: 3.5rem;
    width: 100%;
    display: block;
}

.research-section:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Left text block */
.research-text-left {
    text-align: left; 
    padding: 2rem;
    flex: 2 1 400px;
    position: relative;
}

.research-text-left h2{
    justify-content: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
}

.research-text-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222;
}

/*Right text block */
 .research-text-right {
    text-align: left;
    padding: 2rem;
    flex: 2 1 400px;
    position: relative;
 }

/* Typography */
.research-text-right h2 {
    justify-content: right;
    text-align: left; 
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
}

.research-text-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222;
}
 
/* Right image block */
.research-image-right {
    flex: 1 1 400px;
    position: relative;
}

.research-image-right img {
  width: 75%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transform: translate(130px); /* makes it overlap the purple box a bit */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/*Left image block */
.research-image-left {
    flex: 1 1 400px;
    position: relative;
}

.research-image-left img {
  width: 75%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Responsive layout: stack vertically on small screens */
@media (max-width: 768px) {
  .research-section {
    flex-direction: column;
  }

  .research-text-left,
  .research-text-right {
    padding: 1rem;
    text-align: center;
  }

  .research-text-left h2,
  .research-text-right h2 {
    margin-bottom: 0.75rem;
    text-align: center; 
  }

  .research-text-left p,
  .research-text-right p {
    text-align: center; 
  }

  .research-image-left, 
  .research-image-right { 
    order: -1; /* moves them to the top */
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
  }

  .research-image-right img,
  .research-image-left img {
    transform: none;
    width: 75%;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .research-section {
    flex-direction: column;
    padding: 1.5rem 1rem;
    margin-bottom: 2.5rem;
    border-radius: 6px;
  }

  .research-text-left,
  .research-text-right {
    padding: 1rem;
    text-align: center;
  }

  .research-text-left h2,
  .research-text-right h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    text-align: center; 
  }

  .research-text-left p,
  .research-text-right p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center; 
  }

  .research-image-left, 
  .research-image-right { 
    order: -1; /* moves them to the top */
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
  }

  .research-image-left img,
  .research-image-right img {
    width: 85%;
    margin: 1rem auto 0;
    display: block;
    transform: none;
    border-radius: 6px;
  }
}

@media (max-width: 314px) {
  .research-section {
    padding: 1rem 0.5rem;
    margin-bottom: 2rem;
  }

  .research-text-left,
  .research-text-right {
    padding: 0.75rem;
  }

  .research-text-left h2,
  .research-text-right h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center; 
  }

  .research-text-left p,
  .research-text-right p {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center; 
  }

  .research-image-left, 
  .research-image-right { 
    order: -1; /* moves them to the top */
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
  }

  .research-image-left img,
  .research-image-right img {
    width: 90%;
    margin: 0.75rem auto 0;
  }
}
