.scl-study-section {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8fafc;
  margin: 4rem; 
  width: 75%;
}

.scl-study-content {
  flex: 1 1 50%;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  color: #1e293b;
}

.scl-study-image-container {
  flex: 1 1 25%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scl-study-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures equal size and no distortion */
}

.scl-study-button {
  display: inline-block;
  background-color: #cbd5e1;
  color: #000;
  text-decoration: none !important;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 1.5rem;
  box-shadow: 3px 3px 0px #94a3b8;
}

.scl-study-button:hover {
  background-color: #94a3b8;
  color: #000;
}

/* Mobile devices */
@media (max-width: 480px) {
  .scl-study-section {
    flex-direction: column;        /* Stack content and image vertically */
    margin: 2rem 1rem;             /* Reduce margins */
    width: 100%;                   /* Use full width on small screens */
  }

  .scl-study-content,
  .scl-study-image-container {
    flex: 1 1 100%;                /* Make both sections full width */
  }

  .scl-study-content {
    order: 2;                      /* Move text below the image */
  }

  .scl-study-image-container {
    order: 1;                      /* Image first on mobile */
    height: 250px;                 /* Constrain height for consistency */
  }

  .scl-study-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .scl-study-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 2px 2px 0px #94a3b8;
  }

  @media (max-width: 768px) {
  .scl-study-section {
    flex-direction: column;        /* Stack content and image vertically */
    margin: 2rem 1rem;             /* Reduce margins */
    width: 100%;                   /* Use full width on small screens */
  }

  .scl-study-content,
  .scl-study-image-container {
    flex: 1 1 100%;                /* Make both sections full width */
  }

  .scl-study-content {
    order: 2;                      /* Move text below the image */
  }

  .scl-study-image-container {
    order: 1;                      /* Image first on mobile */
    height: 250px;                 /* Constrain height for consistency */
  }

  .scl-study-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .scl-study-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 2px 2px 0px #94a3b8;
  }
}
}