.home-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 2rem;
  padding-bottom: 3rem;
  box-sizing: border-box;
}

.home-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.home-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 78, 0.7) 0%,
    rgba(45, 27, 105, 0.6) 50%,
    rgba(26, 26, 78, 0.7) 100%
  );
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Announcement List */
.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  transition: color 0.2s;
}

.announcement-item a:hover {
  color: #fff;
}

.announcement-title {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.announcement-title .pinned-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-weight: 600;
}

.announcement-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Empty State */
.empty-state {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* More Link */
.more-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.more-link a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.more-link a:hover {
  color: #fff;
}

/* Runaway Icon */
.runaway-icon {
  position: fixed;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: left 0.3s ease-out, top 0.3s ease-out, transform 0.2s;
  user-select: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.runaway-icon:hover {
  transform: scale(1.2);
}

.runaway-icon.running {
  animation: wiggle 0.3s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-15deg) scale(1.1); }
  50% { transform: rotate(15deg) scale(1.2); }
  75% { transform: rotate(-10deg) scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
    padding-bottom: 2rem;
    align-items: flex-end;
  }

  .home-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .glass-card {
    padding: 1.25rem;
  }

  .glass-card h2 {
    font-size: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
