:root {
  --primary: #169e50;
  --greyLight: #23adade1;
  --greyLight-2: #cbe0dd;
  --greyDark: #2d4848;
  --textTitle: #2c8456;
  --backgroundColor: #169e50;
  --secondaryBackground: #e2ffee;
  --newsCardBackgroundColor: #f5fff9;
}
@import url("https://fonts.googleapis.com/css?family=Libre+Franklin:300,400,600,700,800,900&display=swap");

.tab-navigation {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 4px 22px;
  background: rgb(252, 253, 255);
  border: 3px solid #169e50;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 32px;
  color: #169e50;
}

.tab-btn:hover {
  background: #e9ecef;
}

.tab-btn.active {
  background: #169e50;
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.tab-card-content {
  height: 461px !important;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.grid-item:hover .image-overlay {
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
/* 
.second-section .container ul, li{
  font-size: 16px;
} */

@media (max-width: 1225px) and (max-width: 1268px) {
  .tab-card-content {
    height: 310px !important;
  }
}

.news-content-container {
  max-width: 90rem;
  margin: 0 !important;
}
/* for card content */
.card {
  background: var(--newsCardBackgroundColor);
}
.carousel-nav-icon {
  height: 48px;
  width: 48px;
}
.row {
  justify-content: space-evenly;
}
.col-10 {
  padding: 0;
}
.carousel-item .col,
.carousel-item .col-sm,
.carousel-item .col-md {
  margin: 8px;
  height: 300px;
  background-size: cover;
  background-position: center center;
}
.card-text h4 {
  text-align: center;
  color: var(--textTitle);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Mobile styles */
@media (max-width: 768px) {
  .row {
    justify-content: space-evenly;
  }
  #pic1 {
    height: calc(100vh - 70vh);
    width: 20px;
  }
  .card {
    //width: 113px !important;
    border-radius: 10px !important;
    height: 280px !important;
    justify-content: space-between;
  }
  .card-img {
    position: relative;
    //width: 111px;
    //height: 91px;
    height: 140px;
    background-color: #169e50;
    border-radius: 10px 10px 0 0;
  }
  .card-img img {
    width: -webkit-fill-available;
    //height: 91px;
    height: 140px;
    border-radius: 10px 10px 0 0;
  }
  .card-text h4 {
    text-align: center;
    color: var(--textTitle);
    font-size: 17px;
    margin: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  div.carousel-nav-icon > svg {
    width: 18px;
    height: 18px;
  }
  .tab-btn {
    font-size: 15px !important;
  }
  .btn.btn-link {
    text-decoration: none;
    color: var(--textTitle);
    font-size: 18px;
    padding: 6px 11px;
  }
  .card-text {
    padding: 6px 6px 0 6px;
  }
  .date-img p {
    font-weight: 500;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 20px;
    font-size: 11px;
    color: var(--textTitle);
  }
  .date-img {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 9px;
    color: white;
    background: var(--newsCardBackgroundColor);
    width: 77px;
    height: 20px;
    border-top-left-radius: 15px;
  }
}

/* Tablet styles */
@media (min-width: 780px) and (max-width: 1023px) {
  .card {
    width: 224px;
    border-radius: 20px;
    background: var(--newsCardBackgroundColor);
  }
  .card-img {
    height: 195px;
    width: 210px;
    position: relative;
    background-color: #169e50;
    border-radius: 20px 20px 0 0;
  }
  .card-img img {
    width: 224px;
    height: 194px;
    border-radius: 20px 20px 0 0;
  }
  .card-text h4 {
    text-align: center;
    color: var(--textTitle);
    font-size: 7px;
    margin: 0;
  }
  div.carousel-nav-icon > svg {
    width: 18px;
    height: 18px;
  }
  .tab-btn {
    font-size: 15px !important;
  }
  .btn.btn-link {
    text-decoration: none;
    color: var(--textTitle);
    font-size: 7px;
    padding: 0 11px;
  }
  .card-text {
    padding: 6px 6px 0 6px;
  }
  .date-img p {
    font-weight: 500;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 17px;
    font-size: 15px;
    color: var(--textTitle);
  }
  .date-img {
    position: absolute;
    bottom: 0;
    right: -13px;
    color: white;
    background: var(--newsCardBackgroundColor);
    width: 89px;
    height: 20px;
    border-top-left-radius: 15px;
  }
}

/* Desktop styles */
@media screen and (min-width: 1024px) {
  .card {
    width: 280px;
    border-radius: 20px;
    background: var(--newsCardBackgroundColor);
  }
  .card-img {
    height: 195px;
    width: 278px;
    position: relative;
    background-color: #169e50;
    border-radius: 20px 20px 0 0;
  }
  .card-img img {
    width: 278px;
    height: 194px;
    border-radius: 20px 20px 0 0;
  }
  .card-text {
    padding: 12px;
  }
  .card-text h4 {
    font-size: 17px;
    text-align: center;
    color: var(--textTitle);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn.btn-link {
    font-size: 17px;
    text-decoration: none;
    color: var(--textTitle);
    padding: 7px 24px;
  }
  .date-img {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 18px;
    color: white;
    background: var(--newsCardBackgroundColor);
    width: 130px;
    height: 37px;
    border-top-left-radius: 15px;
  }
  .date-img p {
    font-weight: 500;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 37px;
    font-size: 20px;
    color: var(--textTitle);
  }
}

/* Large Desktop styles */
@media only screen and (min-width: 1200px) {
  .card {
    width: 377px;
    border-radius: 20px;
    background: var(--newsCardBackgroundColor);
  }

  .btn.btn-link {
    text-decoration: none;
    color: var(--textTitle);
    font-size: 24px;
    padding: 4px 24px;
  }

  .card-img {
    position: relative;
    width: 377px;
    height: 272px;
    background-color: #169e50;
    border-radius: 20px 20px 0 0;
  }

  .card-img img {
    border-radius: 20px 20px 0 0;
    width: 377px;
    height: 272px;
  }
  .date-img {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 18px;
    color: white;
    background: var(--newsCardBackgroundColor);
    width: 130px;
    height: 37px;
    border-top-left-radius: 15px;
  }
  .date-img p {
    font-weight: 500;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    line-height: 37px;
    font-size: 20px;
    color: var(--textTitle);
  }
  .card-text {
    padding: 25px;
  }

  .card-text h4 {
    text-align: center;
    color: var(--textTitle);
    font-size: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
