* {
  box-sizing: border-box;
}



.recommendations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 6rem;
  row-gap: 3rem;
  padding: 0 1rem 3rem;
  width: 100%;
  box-sizing: border-box;
}


.recommendation {
  width:100%;
}



.content-box {
  display: block; /* or 'flex' if layout needs it */
  width: 100%;
  aspect-ratio: 6 / 3;
  background-color: var(--color-background);
  border: 2px solid rgb(202, 243, 254);
  border-radius: 10px;
  padding: 0px;
  margin-right: 0; /* remove margin if stacking */
  
}

.rec-title-container {
  display: flex;
  padding-left: 5px;
  border-bottom: 2px solid var(--color-);
  background-color: var(--color-secondary);
  overflow: hidden;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}
.rec-title {
  cursor: pointer;
  display: block;
  width: 49.5%;
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.2;
  word-break: break-word;
}

.rec-details-wrapper {
  display: grid;
  grid-template-columns:3fr 1fr;
  grid-template-rows: 1fr 1fr;

  border-left: 2px dotted var(--color-secondary-dark);
  width: 50%;
}


.rec-icon {
  width: 2rem;
  height: 2rem;
  margin-top:0.3rem;
  display: inline-block;
}
.rec-calendar{
  grid-row:1;
  grid-column:1;
}

.rec-status{
  grid-row:2;
  grid-column:1;
}


.rec-save {
  display: inline-block;
  width: 50%;
  background-color: none;
  justify-content: right;
  vertical-align: top;
  grid-column: 2;
  grid-row: span 2;
  padding: 0;
  cursor: pointer;
}

.bookmark-button{
  background:none;
  border:none;
  padding:0;
  margin-left:auto;
  margin:0;
  justify-content: right;

}

.rec-details-text {
  display:inline-block;
  margin-top: 10px;
  vertical-align: top;
  color: var(--color-primary);
  font-weight: bold;
}





.img-and-desc-container {
  display: flex;
  width: 100%;
  height: 90%;

  vertical-align: bottom;
  padding-bottom: 5px;
}

.rec-img-container {
  display: inline-block;

  width: 50%;
  height: 75%;
  vertical-align: bottom;
}

.rec-img {
  display: block;
  width: 100%;
  aspect-ratio: 9/8;
  object-fit: cover; /* Cover the entire container */
  object-position: center;
}

.rec-desc-container {
  padding-top: 1px;

  display: flex;
  flex-direction: column;
  padding-left: 5px;

  height: auto;
  width: 49%;
  object-position: right;
}

.rec-desc {
  display: block;
  margin-top: 0;
  margin-bottom: 1px;
  width: 100%;
  height: 90%;
  overflow: hidden;
}

.read-more {
  display: block;

  cursor: pointer;
}

#show-more {
  display: inline;
  width: 100%;
  height: 4rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  font-size: 1.2em;
  border-radius: 10px;
  vertical-align: top;
  padding: 0px;
  margin: 0;
  grid-column: span 2;
  transition: all 0.2s ease-in-out;
}

#show-more:hover {
  background-color: var(--color-secondary-dark);

  
}

.hidden{
  display:none;
}

@media (max-width:860px){
  .recommendations{
    grid-template-columns: repeat(1, 1fr);
  }
}
