/* Announcement Section Styling */
.announcement-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  min-height: 100vh;
}

.announcement-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Announcement Header */
.announcement-header {
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.announcement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.announcement-badge {
  margin-bottom: 15px;
}

.announcement-badge span {
  display: inline-block;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.announcement-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #2c3e50, #1e3c72);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.announcement-subtitle {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Filter & Search */
.announcement-filter {
  position: relative;
  z-index: 2;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 20px;
  border: none;
  background: #fff;
  color: #666;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
}

.announcement-search {
  position: relative;
  z-index: 2;
}

.search-box {
  position: relative;
  display: flex;
}

.search-box .form-control {
  border-radius: 25px;
  border: 1px solid #ddd;
  padding: 12px 50px 12px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box .form-control:focus {
  border-color: #ff9800;
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Announcement Cards */
.announcement-list {
  position: relative;
  z-index: 2;
}

.announcement-card {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border-left: 5px solid #ff9800;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Date Section */
.announcement-date {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 30px 25px;
  text-align: center;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.announcement-date::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.announcement-card:hover .announcement-date::after {
  opacity: 1;
}

.date-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.date-month {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.date-year {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Content Section */
.announcement-content {
  flex: 1;
  padding: 30px;
}

.announcement-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge.pmb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.category-badge.akademik {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
}

.category-badge.beasiswa {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-badge.important {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
}

.priority-badge.urgent {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.priority-badge.normal {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  color: #fff;
}

.announcement-title-item {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.announcement-title-item a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.announcement-title-item a:hover {
  color: #ff9800;
}

.announcement-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Actions */
.announcement-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-btn.primary {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
  color: #fff;
}

.action-btn.secondary {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
}

.action-btn.secondary:hover {
  background: linear-gradient(135deg, #f57c00, #ff9800);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
  color: #fff;
}

.announcement-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #999;
  font-size: 14px;
}

.announcement-stats i {
  color: #ff9800;
}

/* Pagination */
.pagination-area {
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-item {
  margin: 0;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 12px;
  color: #666;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  padding: 0;
  margin: 0;
}

.page-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  transition: left 0.3s ease;
  z-index: -1;
}

.page-link:hover,
.page-item.active .page-link {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.page-link:hover::before,
.page-item.active .page-link::before {
  left: 0;
}

.page-link:focus {
  box-shadow: 0 0 15px rgba(30, 60, 114, 0.4);
  outline: none;
}

/* Navigation arrows */
.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
}

.page-link[aria-label="Previous"] i,
.page-link[aria-label="Next"] i {
  font-size: 12px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.page-link span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.page-link[aria-label="Previous"]::before,
.page-link[aria-label="Next"]::before {
  background: linear-gradient(135deg, #f57c00, #ff9800);
}

.page-link[aria-label="Previous"]:hover,
.page-link[aria-label="Next"]:hover {
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

/* Active state */
.page-item.active .page-link {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  font-weight: 700;
}

/* Disabled state */
.page-item.disabled .page-link {
  color: #ccc;
  background: #f8f9fa;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.page-item.disabled .page-link:hover {
  color: #ccc;
  background: #f8f9fa;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-item.disabled .page-link::before {
  display: none;
}

.page-item.disabled span.page-link {
  color: #ccc;
  background: #f8f9fa;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Pagination wrapper styling */
.pagination-wrapper {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pagination info */
.pagination-info {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.pagination-info strong {
  color: #ff9800;
  font-weight: 600;
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .pagination {
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .page-link {
    width: 40px;
    height: 40px;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    margin: 0;
  }
  
  .pagination-wrapper {
    padding: 20px 15px;
  }
  
  .pagination-info {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  /* Hide some page numbers on mobile */
  .pagination .page-item:nth-child(n+6):nth-child(-n+8) {
    display: none;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 3px;
  }
  
  .page-link {
    width: 35px;
    height: 35px;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    margin: 0;
  }
  
  .pagination-wrapper {
    padding: 15px 10px;
    margin: 0 10px;
  }
  
  /* Show only essential pagination on mobile */
  .pagination .page-item:nth-child(n+4):nth-child(-n+8) {
    display: none;
  }
}

/* Animation for pagination */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination-area {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .announcement-title {
    font-size: 2.5rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .announcement-section {
    padding: 60px 0;
  }
  
  .announcement-title {
    font-size: 2rem;
  }
  
  .announcement-subtitle {
    font-size: 1rem;
  }
  
  .announcement-card {
    flex-direction: column;
  }
  
  .announcement-date {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    min-width: auto;
    padding: 20px;
  }
  
  .date-number {
    font-size: 2rem;
    margin-bottom: 0;
  }
  
  .announcement-content {
    padding: 20px;
  }
  
  .announcement-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-btn {
    justify-content: center;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .announcement-header {
    padding: 20px 0;
  }
  
  .announcement-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .announcement-title {
    font-size: 1.8rem;
  }
  
  .announcement-title-item {
    font-size: 1.2rem;
  }
  
  .announcement-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-card {
  animation: fadeInUp 0.6s ease-out;
}

.announcement-card:nth-child(2) { animation-delay: 0.1s; }
.announcement-card:nth-child(3) { animation-delay: 0.2s; }
.announcement-card:nth-child(4) { animation-delay: 0.3s; }
.announcement-card:nth-child(5) { animation-delay: 0.4s; }
.announcement-card:nth-child(6) { animation-delay: 0.5s; }