/******************/
/* BEspecial Block */
.bespecial {
  padding-top: 60px;
  background-color: #FFF;
  margin-bottom: 70px;
  margin-right: 2rem;
  margin-left: 2rem;
}

.bespecial h4 {
  text-align: center;
  margin-bottom: 40px;
  color: #7AABDE;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.45;
}

.bespecial-container {
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* ensures responsiveness */
  align-items: stretch;
}

/* Reverse layout when image on right */
.bespecial-container.reverse {
  flex-direction: row-reverse;
}

.bespecial-image-container {
  flex: 1;
  max-width: 50%;
}


.bespecial-container .bespecial-image {
  flex: 1;
  /*max-width: 50%;*/
}

.bespecial-container .bespecial-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.bespecial-image-caption{
  font-size: 11px;
}

.bespecial-text-wrapper {
  flex: 1;
  max-width: 50%;
  padding: 1rem;
  padding-top: 0px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centers content horizontally */
}

.bespecial-text-wrapper p {
  text-align: left; /*centers text inside <p> */
  width: 100%;        /* ensures paragraph takes full wrapper width */
  margin: 0.5rem 0;   /* optional spacing */
  white-space: normal;  /* allow text to wrap */
  word-wrap: break-word; /* break long words if needed */
  overflow-wrap: break-word; /* standard modern property */
  font-size: clamp(13px, 1vw, 20px);
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 18; /* Number of lines to show */
  -webkit-box-orient: vertical;  
  
  overflow: hidden;
  white-space: pre-wrap;

  font-family: 'Inter';

}

/* Style last paragraph / link as button */
.bespecial-text-wrapper p:last-child,
.bespecial-text-wrapper a.bespecial-link {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.bespecial-text-wrapper a.bespecial-link {
  align-items: center;
  width: 120px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50px;
  background: #7AABDE;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  line-height: 35px; /* vertically center text */
  transition: background 0.3s ease;
}

.bespecial-text-wrapper a.bespecial-link:hover {
  background: #639edd;
}

.link-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.history-link-container {
  margin-top: 38px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bespecial-history-link {
  width: 326px;
  height: 40px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50px;
  background: #7AABDE;
  text-decoration: none; 
  color: #FFF;

  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

a.bespecial-history-link:link,
a.bespecial-history-link:visited,
a.bespecial-history-link:hover,
a.bespecial-history-link:active,
a.bespecial-history-link:focus {
  color: #fff;
  text-decoration: none;
  outline: none;
}
/* Media Querys */

@media (max-width: 1024px) {
  .bespecial {
    padding-top: 30px;
    margin-bottom: 50px;

    margin-right: 1.5rem;
    margin-left: 1.5rem;
  }

  .bespecial h4 {
    margin-bottom: 30px;
  }

  .history-link-container {
    margin-top: 20px;
  }

  .bespecial-text-wrapper p{
    -webkit-line-clamp : 12;
  }

  .bespecial-text-wrapper a.bespecial-link{
    width: 110px;
    height: 30px;
    font-size: 13px;
  }

  .bespecial-history-link{
    width: 200px;
    height: 30px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {

  .bespecial {
    padding-top: 30px;
    margin-bottom: 40px;
  }

  .bespecial h4 {
    margin-bottom: 2rem;
  }

  .bespecial-container{
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .bespecial-container.reverse{
    flex-direction: column;
  }

  .bespecial-text-wrapper {
    max-width: 90%;
    padding: 0px;
  }

  .bespecial-image{
    max-width: 100% !important;
  } 

  .history-link-container {
    margin-top: 25px;
  }  

  .bespecial-text-wrapper a.bespecial-link{
    width: 95px;
    height: 25px;
    font-size: 12px;
    margin-top: 0.5rem !important;
  }

  .bespecial-history-link{
    width: 220px;
    height: 30px;
    font-size: 14px;
  }

  .bespecial-text-wrapper {
    font-size: 18px;
  }

  /* Style last paragraph / link as button */
  .bespecial-text-wrapper p:last-child,
  .bespecial-text-wrapper a.bespecial-link {
    margin-top: 1rem;
  }

  .link-container{
      width: 100%;
  }
}

@media (max-width: 425px) {

  .bespecial{
    margin-bottom: 30px;
  }

  .bespecial-container.reverse{
    flex-direction: column;
  }

  .bespecial-container{
    padding: 0px;
  }

  .bespecial-container .bespecial-image {
    flex: 1;
    max-width: 100%;
  }

  .bespecial-text-wrapper{
    max-width: 100%;
  }

  .history-link-container {
    margin-top: 30px;
  }

  .bespecial-history-link {
    width: 240px;
    height: 30px;
  }

  .item img {
    height: 50px;
    width: 50px;
  }

  .item p {
      font-size: 11px;
  }

}

