.latest-news {
  margin-top: 100px;
  padding: 6rem 2rem 4rem;
  background: rgb(247, 49, 148);
  border-radius: 0 0 80px 80px;
}

.news-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #fff;
  font-size: 2rem;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.news-content h4 {
  font-size: 1.4rem;
  margin: 0.5rem 0;
  color: #333;
}

.news-content small {
  color: #777;
  margin-bottom: 0.5rem;
  display: block;
}

.news-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #444;
  line-height: 1.5;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  text-align: left;
}

.modal-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.modal-text {
  padding-top: 1rem;
}

.modal-field {
  margin-bottom: 1.2rem;
}

.modal-field strong {
  display: block;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

#modalTitle {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 0.3rem;
}

#modalDate {
  font-size: 0.9rem;
  color: #888;
}

#modalContent {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
