@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: rgb(255, 255, 255);
  text-align: center;
}

.news-section {
  padding: 50px 20px;
  margin-bottom: 70px; /* Adds space below the section */
  background-color: #5c7285;
}

.news-section h2 {
  font-size: 3rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 30px;
}

.news-section p {
  font-size: 16px;
  /* margin-bottom: 50px; */
}

.news-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin-top: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  min-height: 450px;
}

.news-card:hover {
  transform: scale(1.05);
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.news-content h3 {
  font-size: 1rem;
  color: #1e3a8a;
  font-weight: bold;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.meta i {
  color: #007bff;
  margin-right: 5px;
}

.news-content p {
  font-size: 14px;
  color: #333;
}

.read-more {
  display: block;
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  margin-top: auto;
}

.read-more:hover {
  background-color: #0056b3;
  color: white;
}
/* for previous button */
.prev-content-btn {
  margin: 20px auto;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
}

.prev-content-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.ql-editor {
  font-size: 1rem;

  ul,
  ol {
    padding-left: 0.25rem !important;
  }

  .ql-indent-1:not(.ql-direction-rtl) {
    padding-left: 2ch !important;
  }

  .ql-indent-2:not(.ql-direction-rtl) {
    padding-left: 4ch !important;
  }

  .ql-indent-3:not(.ql-direction-rtl) {
    padding-left: 6ch !important;
  }

  .ql-indent-4:not(.ql-direction-rtl) {
    padding-left: 8ch !important;
  }

  .ql-indent-5:not(.ql-direction-rtl) {
    padding-left: 10ch !important;
  }

  .ql-indent-6:not(.ql-direction-rtl) {
    padding-left: 12ch !important;
  }

  .ql-indent-7:not(.ql-direction-rtl) {
    padding-left: 14ch !important;
  }

  .ql-indent-8:not(.ql-direction-rtl) {
    padding-left: 16ch !important;
  }
}

.content {
  padding: 0 !important;
  white-space: unset !important;
  height: max-content;
  margin-bottom: 1.25rem;

  p {
    margin: 0 !important;
  }
}

.ql-container {
  overflow: visible;
}

.clamped-text {
  display: -webkit-box; /* Create a flexible box */
  line-clamp: 3; /* Limit the text to 3 lines */
  -webkit-box-orient: vertical; /* Vertical box orientation */
  -webkit-line-clamp: 3; /* Limit the text to 3 lines */
  overflow: hidden; /* Hide the overflow */
  text-overflow: ellipsis; /* Show ellipsis when the text overflows */
}
