/* Container */
.announcements {
  max-width: 1250px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Title */
.ann-title {
  font-size: 1.75rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
  font-family: 'Oswald';
}

/* List */
.ann-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each announcement */
.ann-item {
  background: white;
  padding: 1.3rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.ann-item:hover {
  border: 1px solid #031130;
  transition: border-color 0.5s ease;
}

/* Meta row */
.ann-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.ann-date {
  color: #333b4b;
  font-size: 0.9rem;
}

/* Category labels */
.ann-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.tag-red {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.tag-blue {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.tag-green {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

/* Content section */
.ann-item-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.1rem 0 0.2rem;   
  padding: 0;             
  line-height: 1.5;
  color: #180c4e;
}

.ann-desc {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.3rem 0 0.6rem;
}

/* Links */
.ann-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 0 0;
}

.ann-links a {
  color: #0f4ba6;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ann-links a:hover {
  border-color: #0f4ba6;
}

.ann-new {
  background: #0b0235;
  color: #fffaf5;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 7px;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 600px) {
  .announcements {
    max-width: 500px;
  }

  .ann-item {
    padding: 1rem 1.1rem;
  }

  .ann-title {
    font-size: 1.7rem;
  }
}
