* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h2{
  font-size: 16px;
}

.content-wrapper {
  width: 100%;
  flex-direction: column;
  margin: 0;
  padding: 0;
  display: flex;

}






/*
#text-article-box-section-noexcerpt {
  display: flex;
  flex-direction: column;
}*/

.article-box {
  a {
    text-decoration: none;
    color: black;
  }
}

.text-article-box {
  h3 {
    font-size: 17px;
  }
}

.img-article-box {
  display: flex;
  flex-direction: row;

  @media only screen and (max-width:1120px) {
      flex-direction: column;
  }
  
}
/*
#article-boxes-with-images-section {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  gap: 30px;
}*/

/* General layout */
#distributor-top-section {
  display: flex;
  gap: 20px;
  height: 100%;
  padding-bottom: 15px;

  @media only screen and (max-width:1120px) {
      flex-direction: column;
  }

}

/* Top Section: columnas */
#top-article-box {

  display: flex;
  flex-direction: column;
  margin-bottom: 16px;

  @media only screen and (min-width:1120px) {
      width: 50%;
  }

}

#text-article-box-section-noexcerpt {
  @media only screen and (min-width:1120px) {
    width: 25%;
  }
  /*display: flex;
  flex-direction: column;
  gap: 50px;
  height: 100%;*/
}

#right-column {
  @media only screen and (min-width:1120px) {
    width: 25%;
  }

  display: flex;
  /*justify-content: center;*/
  align-items: flex-start;
  flex-direction: column;
  gap: 30px;
}

/* Top Article Box */
.top-article-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-article-box img {
  width: 100%;
  height: auto;
}

/* Text Article Boxes */
.text-article-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: inherit;
  justify-content: space-between;
  border-bottom: solid 1px #ddd;
  padding: 10px 0;

}

.text-article-box h3 {
  font-size: 22px;
  margin: 0 0 5px;
}

.article-cta {
  color: #0073e6;
  font-weight: bold;
  font-size: 16px;
  margin-top: 5px;
}

/* Middle Section */
.article-boxes-with-images-section {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 30px 20px;

  @media only screen and (min-width: 1120px) {
    flex-wrap: wrap;
    height: 300px;
  }


  @media only screen and (max-width: 1120px) {
    flex-direction: column;
  }

}

/* Cada article-box con imagen */
.article-box-image {
  width: 48%;
  height: 100%;

  @media only screen and (max-width: 1120px) {
    width: 100%;
    height: auto;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 12px;
  }

}

.img-article-box {
  display: flex;
  height: 250px;
  
  @media only screen and (max-width: 1120px) {
    height: auto;
  }
}

.image-article-box-content {
  width: 45%;
  height: 100%;
  justify-content: space-between;
  margin: 0 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  
  @media only screen and (max-width: 1120px) {
    width: var(--general-width-mob);
  }

}

.image-article-box-content h3 {
  font-size: 22px;
  line-height: 1.2;
  max-height: calc(1.2em * 3); /* 3 líneas de texto */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* número de líneas */
  -webkit-box-orient: vertical;
}

.img-article-box img {
  object-fit: cover;
}

.article-box-img {

  @media only screen and (max-width: 1120px) {
    margin: auto;
    width: var(--general-width-mob);
  }
}

/* Review Section */

.distributor-reviews-wrapper {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: auto;
  touch-action: pan-y;

  @media only screen and (min-width: 1120px) {
    overflow: hidden;
  }

  @media only screen and (max-width: 1120px) {
    overflow-x: visible;
    padding-bottom: 10px;
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;

  @media (min-width: 1120px) {
    display: inline;
    top: 162px;
  }

  @media (max-width: 1120px) {
    display: none !important;
  }
}

.carousel-button.left {
  left: -50px;
}

.carousel-button.right {
  right: -50px;
}

.distributor-reviews-outer {

  position: relative;
  margin: 45px 0px;

  @media only screen and (max-width: 1120px) {
    margin-top: 20px;
  }
}

.distributor-reviews-section {
  display: flex;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  gap: 2%;
  max-height: 330px;
  max-width: 100%;

  @media only screen and (max-width: 1120px) {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 0 10px;
    transform: none !important;
  }
}

.review-box {
  scroll-snap-align: start;
  box-sizing: border-box;
  border: 1px solid #eee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 10px;
  height: 324px;
  max-width: 360px;

  @media only screen and (min-width: 1120px) {
    flex: 0 0 calc((100% - 4%) / 3);
    max-width: calc((100% - 4%) / 3);
  }

  @media only screen and (max-width: 1120px) {
    flex: 0 0 90%;
    min-width: 90%;
    max-width: 90%;
    transform: none !important;
  }
}

/* Indicadores */
.indicators {
  text-align: center;
  margin-top: 20px;
}

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background: #bbb;
  transition: background 0.3s;
}

.indicator.active {
  background: #333;
}

.carousel-button:active {
  transform: translateY(-50%) scale(0.95);
}


.review-box-provider-text {
  display: flex;
  margin-left: 10px;
  align-items: center;
}

.review-box-rating {
  display: flex;
  flex-direction: row;
}

.star-rating {
  display: inline-block;
  position: relative;
  width: 100px; 
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23f90" stroke-width="1.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><polygon points="10,1 12.5,7.5 19,7.5 13.5,11.5 15.5,18 10,14 4.5,18 6.5,11.5 1,7.5 7.5,7.5"/></svg>') repeat-x;
  background-size: 20px 20px;
}

.star-rating-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--percent);
  background: url('data:image/svg+xml;utf8,<svg fill="%23f90" stroke="%23f90" stroke-width="1.5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><polygon points="10,1 12.5,7.5 19,7.5 13.5,11.5 15.5,18 10,14 4.5,18 6.5,11.5 1,7.5 7.5,7.5"/></svg>') repeat-x;
  background-size: 20px 20px;
  overflow: hidden;
}


.rating-text {
  align-content: center;
  margin-right: 10px;
  font-weight: 700;
  font-size: 18px;
}

.review-box-excerpt p{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: calc(1.4em * 3);
  font-size: 18px;
  max-width: 100%;
}

.review-box img {
  object-fit: contain;
}

.review-box-provider-name {
  display: flex;

}

.review-box-read-more {
  display: inline-block;
  padding: 12px 35px;
  background-color: white;
  color: var(--excerpt-bg);
  text-decoration: none;
  font-weight: bold;
  border-radius: 35px;
  font-size: 0.9rem;

  text-align: center;

  border: solid   1px;
  border-color: var(--excerpt-bg);

  height: 44px;
  min-width: 198px;

  @media only screen and (max-width: 1120px) {
    padding: 12px 0px;
  }
  
}

.review-box-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
}

.review-box-review-link {
  text-decoration: underline;
  width: 40%;
  font-size: 13px;

  display: flex;
  justify-content: center;
  align-items: center;
  
  a {
    color: #333;
    justify-content: center;
  }
}

.article-box-excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: calc(1.4em * 3);
  font-size: 12px;
}

.read-more {
  display: inline;
  margin-top: 5px;
  color: blue;
  text-decoration: underline;
}

.article-boxes-text-section{
  display: grid;
  justify-content: space-between;  
  
  @media only screen and (min-width: 1120px) {
    gap: 30px 20px;
    height: 325px;  
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
  }

}

#load-more-articles {
  background-color: var(--excerpt-bg);
  color: white;
  text-align: center;
  width: 146px;
  height: 44px;
  line-height: 44px;
  border-radius: 35px;
  align-self: center;
  margin: 50px 0;

  @media only screen and (max-width: 1120px) {
    margin: 20px 0 40px 0;
  }
}

.article-box-text-only {
  height: 100%;
}

#sub-articles-section {
  max-width: var(--general-width);
  margin: auto;
}

#sub-articles-section-bg {
  background-color: #F8F8F8;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  
  @media only screen and (max-width: 1120px) {
    padding-bottom: 20px;
  }
}

#quote-container {
  height: 450px;

  @media only screen and (max-width: 1120px) {
    height: 482px;
    width: 390px;
  }
  
}


#quote-container-content {
  top: 100px;
  position: relative;
  background-color: var(--light-bg);
  height: 283px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  @media only screen and (max-width: 1120px) {
    flex-direction: column;
    top: 274px;
  }
}

#quote-text {
  margin: 50px 100px;
  flex-direction: column;
  display: flex;

  @media only screen and (max-width: 1120px) {
    margin: auto;
  }
}

#quote-phrase {
  font-size: 36px;
  line-height: 120%;
  font-style: italic;
  font-weight: bold;
  color: black;
  margin-bottom: 30px;

  @media only screen and (max-width: 1120px) {
    font-size: 24px;
  }

  
}

#quote-author {
  font-size: 25px;
  line-height: 44px;
  text-align: right;
}

#quotation-marks {
  position: relative;
  left: 100px;
  top: 60px;
  font-size: 175px;
  color: var(--excerpt-bg);
  height: 30px;
  z-index: 9999;
  font-weight: 700;

  @media only screen and (max-width: 1120px) {
    left: 20px; 
    font-size: 120px;
  }
  
}

#quote-image {
  right: 50px;
  object-fit: contain;

    /*
  @media only screen and (max-width: 1120px) {
    position: relative;
    right: 45px;
    bottom: 57px;
  } */
  
}

#quote-image-obj {
  height: 396px;
  width: 357px;
  
  position: relative;
  right: 45px;
  bottom: 57px;

  @media only screen and (max-width: 1120px) {
    height: 274px;
    width: 247px;

    position: relative;
  
    /*top: -277px;
    right: 150px;
    */
  }
}

/* ranking list */

.provider-list-item {
  display: flex;
  flex-direction: row;

  width: 100%;
  justify-content: space-around;
  align-items: center; 
  border-top: solid 2px #ddd;

  @media only screen and (min-width: 1120px) {
    height: 110px;
    gap: 30px;
  }


  @media only screen and (max-width: 1120px) {
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
  }
}

.provider-list-item-text {
  display: flex;
  flex-direction: column;
  width: 50%;

  @media only screen and (max-width: 1120px) {
    font-size: 18px;
    width: 100%;
  }
}

.provider-list-item-category {
  
  font-weight: 600;
  font-size: 22px;
  line-height: 150%;
  vertical-align: middle;
  text-decoration: underline;
}


.provider-list-recommended-provider {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin: auto;
  align-items: center;
}

.provider-list-recommended {
  height: 27px;
  border-radius: 7px;
  padding: 1px 7px;
  background-color: var(--excerpt-bg);
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  vertical-align: middle;
}


.provider-list-more-info {
  border-radius: 35px;
  padding: 12px 35px;
  border: solid 1px var(--excerpt-bg);
  color: var(--excerpt-bg);

  a {
    text-decoration: none;
    color: black;
  }

}

.provider-list-provider-info {
  display: flex;
  flex-direction: row;
  width: 250px;
  align-items: center; 

  img {
    height: 60px;
    width: 60px;
    margin-right: 5px;
  }
}

.provider-list-item-name {
  font-weight: bold;
  margin-left: 10px;
  a {
    text-decoration: none;
    color: black;
  }
}

.provider-list-common {
  width: 50%;
  display: flex;
  justify-content: flex-end;     
  align-items: center;           
  gap: 25px;  
  
  @media only screen and (max-width: 1120px) {
    flex-direction: column;
    width: 100%;
  }

}

.provider-list-link {
  a {
    text-decoration: none;
    color: black;
  }
}

.provider-banner-container {

   @media only screen and (max-width:1120px) {
      margin: auto;
  }
  
}

.tradingview-widget-container {

  @media only screen and (max-width:1120px) {
      margin: auto;
  }

}



