.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background-color: #f0f0f0;
}

.news-image img.news-thumbnail {
  max-width: 100%;
  /* height: 150px; */
  min-height: 150px;
}

.no-image {
  background: #f4f4f4;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 1.5em;
  margin: 0 0 10px;
}

.news-excerpt {
  margin: 0 0 10px;
  color: #555;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  color: #888;
}

.add-news-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-news-form .form-group {
  margin-bottom: 20px;
}

.add-news-form label {
  font-weight: bold;
}

.add-news-form .form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.add-news-form .form-control-file {
  padding: 8px 0;
}

.add-news-form textarea {
  resize: vertical;
}

.form-actions {
  text-align: right;
}

.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-body .news-title {
  margin-top: 0;
}

.news-image-container {
  text-align: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.news-image-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-content-full {
  line-height: 1.6;
  color: #333;
  font-size: 16px;
}

.news-date {
  color: #6c757d;
  font-style: italic;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.modal-xl {
  max-width: 90%;
}

.modal-xl .modal-body {
  padding: 20px;
}

.form-control[readonly] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  cursor: not-allowed;
}

#news_metadata {
  font-size: 14px;
  line-height: 1.8;
}

#news_metadata strong {
  color: #495057;
  font-weight: 600;
}

.modal-footer .btn {
  margin-left: 10px;
}

.modal-footer .btn i {
  margin-right: 5px;
}

.loading-spinner {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner i {
  color: #007bff;
  margin-bottom: 15px;
}

.loading-spinner p {
  color: #6c757d;
  margin: 0;
}

.alert-danger {
  border-color: #dc3545;
  background-color: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  .modal-xl {
    max-width: 95%;
    margin: 10px;
  }

  .modal-xl .modal-body {
    padding: 15px;
  }

  .news-image-container img {
    max-height: 300px;
  }
}

#newsModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#newsModal .modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 20px 25px;
}

#newsModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

#newsModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#newsModal .btn-close:hover {
  opacity: 1;
}

#newsModal .modal-body {
  padding: 25px;
  line-height: 1.8;
}

#newsModal .news-content-full {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

#newsModal .news-content-full p {
  margin-bottom: 15px;
}

#newsModal .text-muted {
  font-size: 14px;
  display: block;
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

