

.news-sections{
  width: 100%;
  font-family: "Cardo", serif;
  font-weight: 900;
  font-style: normal;
  /* border: 2px solid red; */
}

.header {
  width: 100%;
  height: 350px; /* Set height for the heading section */
  background-image: url("../Image/Gallery.jpg"); 
  background-size: cover; /* Make the background cover the entire section */
  background-position: center; /* Center the background image */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1B1B36;
  color: white; /* Text color for contrast */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Shadow for better readability */
}
.news-divs {
  width: 80%;
  margin: 20px auto;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.news-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 calc(33.333% - 20px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.news-card p {
  font-size: 15px;
  color: #515151;
}

.read-more {
  font-size: 14px;
  text-decoration: none;
  color: #000080;
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px;
}

.pagination button {
  font-size: 15px;
  padding: 10px 15px;
  margin: 0 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-number {
  color: #000080;
  background-color: white;
  border: 1px solid #000080;
}

.page-number.active {
  background-color: #000080;
  color: white;
}

#prevBtn,
#nextBtn {
  font-weight: bold;
  color: #000080;
  background-color: transparent;
  border: none;
}

#prevBtn:disabled,
#nextBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .news-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(45% - 5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .news-container {
    display: flex;
    flex-direction: column;
  }
}
