/* Programs Contents Block - Frontend Styles */

.synpact-programs-contents {
  width: calc(100% + 15vw);
  margin: 3vh 0 8vh 0;
  padding: 0;
}

.synpact-programs-contents .programs-container {
  display: flex;
  flex-direction: column;
  gap: 3vh;
  background-image: url("../../assets/images/block-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3vh;
  border-radius: 20px;
}

.synpact-programs-contents .program-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  width: 100%;
  max-width: 600px;
  display: flex;
}

/* Left alignment for programs 1 and 3 */
.synpact-programs-contents .program-left {
  align-self: flex-start;
}

/* Right alignment for program 2 */
.synpact-programs-contents .program-right {
  align-self: flex-end;
  margin-right: 15vw;
}

/* Hover effect on the entire program block */
.synpact-programs-contents .program-item {
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.synpact-programs-contents .program-item:hover {
  opacity: 0.85;
}

/* Program link wrapper - takes full width and height */
.synpact-programs-contents .program-link {
  display: contents; /* Makes link transparent to layout */
  text-decoration: none;
  color: inherit;
}

/* Content container - takes up half the block */
.synpact-programs-contents .program-content {
  width: 50%;
  padding: 3vh 3vw;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  /* background-color: rgba(0, 0, 0, 0.3); */
}

/* Text positioned on the right half (for programs 1 and 3) */
.synpact-programs-contents .program-content-right {
  margin-left: auto;
}

/* Text positioned on the left half (for program 2) */
.synpact-programs-contents .program-content-left {
  margin-right: auto;
}

.synpact-programs-contents .program-title {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.8vw, 24px);
  color: #f1f2eb;
  margin: 0 0 1vh 0;
  line-height: 1.3;
  font-weight: bold;
}

.synpact-programs-contents .program-text {
  font-family: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px; /* Base size */
  color: #f1f2eb;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

@media (max-width: 768px) {
  .synpact-programs-contents {
    margin: 2vh 0 3vh 0;
  }
}
