/* HERO SECTION FIX */

.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 1400px; /* Optional: loosen constraint */
  margin: 0 auto;
  gap: 2rem;
  color: #ffffff; /* Light text on dark background */
}

.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #66d9c4; /* Accent color */
}

.hero-text p {
  font-size: 1.25rem;
  color: #cccccc;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image img {
  width: 100%;
  
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Mobile uniform padding for all sections */
.casestudy-section,
.reflection-split,
.button-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.casestudy-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid #e0e0e021;
}

.casestudy-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.casestudy-gallery img,
.casestudy-image {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.casestudy-gallery img {
  flex: 1 1 300px;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casestudy-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Optional caption styling if added later */
.gallery-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  text-align: center;
}

.reflection-split {
  gap: 2rem;
  margin-top: 4rem;
}

/* ---------- Research & Discovery Grid ---------- */
.research-grid {
  display: grid;
  gap: 2rem;
}

.research-text {
  max-width: 600px;
}

.research-findings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finding-box {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.finding-box h3 {
  margin-bottom: 0.5rem;
  color: #343740;
  font-size: 1.1rem;
}

.finding-box p {
  color: #343740;
  line-height: 1.6;
}

/* ---------- Reflection Section ---------- */
.reflection-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.reflection-box {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-left: 4px solid #66d9c4;
  border-radius: 0.5rem;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #343740;
}

.reflection-box p {
  color: #343740;
}


.casestudy-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.casestudy-text {
  flex: 1;
}

.casestudy-text h2 {
  font-size: 2rem;
  color: #66d9c4;
  margin-bottom: 1.25rem;
}

.casestudy-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
  max-width: 800px;
}

.casestudy-figure {
  flex: 1;
  text-align: center;
}

.casestudy-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.casestudy-image:hover {
  transform: scale(1.02);
}

.gallery-caption {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
  text-align: center;
}



/* Desktop layout */
@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: none;
    width: 100%;
    gap: 4rem; /* increase spacing between text and image */
  }

  .hero-text {
    flex: 0.6; /* slightly less space for text */
    padding-right: 1rem;
  }

  .hero-image {
    flex: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
  }

  .hero-image img {
    width: 100%;
    max-width: 800px; /* ← Increase this if needed */
    height: auto;
  }

  .casestudy-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .casestudy-gallery img {
    flex: 1 1 400px;
    max-width: 600px; /* Or any value like 320px */
  }

  .research-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .research-findings {
    gap: 1.5rem;
  }

  .reflection-split {
    flex-direction: row;
    justify-content: space-between;
  }

  .reflection-split > div {
    flex: 1;
  }

  .reflection-box {
    margin-left: 2rem;
  }

  .casestudy-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .reflection-split {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .button-container {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .casestudy-split {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 6rem;
  }

  .casestudy-text {
    padding-right: 2rem;
  }

  .casestudy-figure {
    text-align: right;
  }
}
