.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.notice-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.notice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #1e5f99, #2a7bc4);
}

.notice-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.notice-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e5f99, #2a7bc4);
  border-radius: 50%;
  color: white;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(30, 95, 153, 0.3);
}

.notice-day {
  font-size: 1.4rem;
  line-height: 1;
}

.notice-month {
  font-size: 0.7rem;
  margin-top: 2px;
}

.notice-year {
  font-size: 0.7rem;
  margin-top: 1px;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e5f99;
  margin-bottom: 12px;
  line-height: 1.4;
}

.notice-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
  font-size: 0.95rem;
}

.notice-link {
  color: #1e5f99;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notice-link:hover {
  color: #2a7bc4;
  text-decoration: underline;
}

.notice-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.notice-link:hover::after {
  transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .notice-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .notice-card {
    padding: 20px;
  }

  .notice-header {
    gap: 15px;
  }

  .notice-date {
    width: 60px;
    height: 60px;
  }

  .notice-day {
    font-size: 1.2rem;
  }

  .notice-month,
  .notice-year {
    font-size: 0.6rem;
  }

  .notice-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .notice-card {
    padding: 15px;
  }

  .notice-header {
    gap: 12px;
  }

  .notice-date {
    width: 50px;
    height: 50px;
  }

  .notice-day {
    font-size: 1rem;
  }

  .notice-month,
  .notice-year {
    font-size: 0.5rem;
  }

  .notice-title {
    font-size: 1rem;
  }

  .notice-description {
    font-size: 0.9rem;
  }
}

/* Animation for cards */
.notice-card {
  animation: fadeInUp 0.6s ease-out;
}

.notice-card:nth-child(1) {
  animation-delay: 0.1s;
}
.notice-card:nth-child(2) {
  animation-delay: 0.2s;
}
.notice-card:nth-child(3) {
  animation-delay: 0.3s;
}
.notice-card:nth-child(4) {
  animation-delay: 0.4s;
}
.notice-card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
