/* SECTION BACKGROUND */
.news-section {
  padding: 80px 8%;
  color: white;

  background: linear-gradient(135deg, #0f5132, #198754, #ff7a18, #ffb347);
  background-size: 300% 300%;
  animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* HEADER */
.news-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-header h2 {
  font-size: 2.5rem;
}

/* GRID */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* CARD */
.news-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s;
}

.news-card:hover {
  transform: translateY(-10px);
}

/* IMAGE */
.news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */
.news-content {
  padding: 20px;
}

.news-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0;
}

/* BUTTON */
.read-more-btn {
  background: #ffd700;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

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

.modal-content {
  background: white;
  color: black;
  width: 90%;
  max-width: 900px;
  padding: 30px;
  border-radius: 20px;
  overflow-y: auto;
  max-height: 90vh;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* CLOSE */
.close-btn {
  float: right;
  font-size: 25px;
  cursor: pointer;
}

/* GALLERY */
.modal-gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal-gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}

.modal-gallery img:hover {
  transform: scale(1.1);
}

/* MOBILE */
@media (max-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
