/* CSS Variables */
:root {
  --red-primary: #F04A23;
  --blue-dark: #0B243F;
  --gray-medium: #6B7280;
  --white: #FFFFFF;
}

/* News Section */
.news-container {
  padding: 4rem 8rem;
  background: #fafafa;
}

.newsmain-header {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.newsmain-header span {
  color: var(--red-primary);
}

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

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.date {
  font-size: 0.9rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  min-height: 3.4em;
}

.news-detail {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.2rem;
  min-height: 3em;
}

.readmorebtn {
  display: inline-block;
  background: var(--red-primary);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.readmorebtn:hover {
  background: #a30b0b;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination-container {
  padding: 0.6rem 1.2rem;
  background: var(--red-primary);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
}

.pagination-side.next {
  right: -82px !important;
}

.pagination-side.prev {
  left: -82px !important;
}


/* Responsive Design */
@media (max-width: 768px) {
  .news-container {
    padding: 2rem 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-container {
    padding: 1rem 1rem;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}
