@import url("global-styles.css");
@import url("header.css");
@import url("callout.css");
@import url("footer.css");
@import url("card.css");
@import url("article.css");

.main-insights {
  padding: 40px 0;
  width: 95%;
  margin: auto;
}

.main-insights__container {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

.main-insights__cards {
  width: 100%;
}

.insights-card {
  padding-bottom: 40px;
  width: 100%;
  height: max-content;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.insights-card__image {
  width: 100%;
  object-fit: cover;
}

.feed-card__head iframe {
    height: 450px;
}
.insights-card__footer,
.insights-card__body {
  padding-left: 50px;
  padding-right: 30px;
}

.insights-card__footer {
  justify-content: space-between;
  margin: auto;
  gap: 15px;
}

.insights-card__paragraph {
  color: var(--color-primary);
}

.insights-card__span {
  font-size: 1.2rem;
}

.insights-card__title {
  width: 100%;
  font-size: 2.3rem;
  margin: 5px 0;
}

.insights-footer__items {
  display: flex;
  justify-content: space-between;
  width: 300px;
}

.main-insights__red {
  overflow: auto;
  margin-bottom: 15px;
}

.insights-callout {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  height: 200px;
}

.insights-callout .callout-item__text p {
  font-size: 1.7rem;
}

.main-insights__twitter,
.main-insights__instagram {
  width: calc(100% - 40px);
  padding: 20px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.288);
}

.main-insights__twitter {
  height: max-content;
}

.insights-cta {
  padding: 30px;
}

.insights-cta__options {
  width: 220px;
  align-items: center;
  justify-content: space-between;
}

.insights-cta__title {
  color: var(--color-secondary);
  margin: 0;
}

.insights-cta__button {
  padding: 8px 10px;
}

.insights-cta__icon {
  position: relative;
  bottom: 10px;
  width: 90px;
}

.main-insights__instagram {
  height: calc(8% - 40px);
}

.main-insights__choise {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #414755;
  /* height: 6%; */
  gap: 15px;
}

.insights-title__book {
  width: 250px;
}

.insights-book {
  width: 200px;
}

.insights-amazon {
  width: 120px;
}

.insights-twitter__icon {
  width: 45px;
}

.main-pagination {
  margin: auto;
  width: max-content;
  color: black;
  padding-bottom: 20px;
}

.main-pagination__item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.main-pagination__link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: var(--font-color-secondary);
}

.pagination-item__active {
  background-color: #dd654d;
  color: white;
}

.pagination-item__active a{
  color: white;
}

.insights-instagram__follow {
  font-weight: bold;
}

.pagination-btn {
  width: 25px;
}

.btn-card {
  padding: 7px 10px;
}

@media screen and (max-width: 990px) {
  .btn-card {
    width: 100px;
  }
}

@media screen and (max-width: 975px) {
  .main-insights__container {
    grid-template-columns: 60% 40%;
  }

  .insights-card__body,
  .insights-card__footer {
    padding: 10px 20px;
  }
}

@media screen and (max-width: 900px) {
  .main-insights__container {
    grid-template-columns: 100%;
  }

   .btn-card {
    width: max-content;
  }
}
@media screen and (max-width: 600px) {
  .insights-card__body,
  .insights-card__footer {
    padding: 10px;
  }

  .insights-callout {
    height: 180px;
  }
}

@media screen and (max-width: 500px) {
  .insights-footer__items {
    flex-direction: column;
    width: 50%;
    gap: 10px;
  }

  .insights-callout {
    height: 170px;
  }
  
  .insights-callout .callout-item__text p {
    font-size: 1.1rem;
  }

  .insights-card__title {
    font-size: 2rem;
  }

  .insights-card__footer {
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (max-width: 400px) {
  .insights-callout {
    height: 150px;
  }
  
  .insights-callout .callout-item__text p {
    font-size: 1rem;
  }

  .insights-card__title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 340px) {
  .btn-card {
    padding: 5px ;
    font-size: .9rem;
    height: max-content;
  }
}

@media screen and (max-width: 290px) {
  .insights-footer__items {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
  .insights-card__footer {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (max-width: 240px) {
  .insights-footer__items {
    flex-direction: column;
  }
}