.board-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stack-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-stack {
  position: relative;
  width: 100%;
  max-width: 550px;
}

/* Stack indicators - show behind active card */
.stack-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stack-indicator.second {
  bottom: -10px;
  right: -20px;
  transform: scale(0.97);
  opacity: 0.6;
  z-index: 1;
}

.stack-indicator.third {
  bottom: -20px;
  right: -35px;
  transform: scale(0.94);
  opacity: 0.3;
  z-index: 0;
}

/* Active card */
.notice-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 500px;
  z-index: 10;
  transition: all 0.5s ease-in-out;
}
.notice-card.hidden {
  display: none;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
}

.notice-card-date {
  color: #4a7bb9;
  font-weight: 600;
  background: #f0f7ff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: .665rem;
}

.card-category {
  display: inline-block;
  padding: 5px 15px;
  background: #ff7e5f;
  color: #333;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
}

.b-card-content {
  /*   flex-grow: 1;
  overflow-y: auto; */
  padding-right: 10px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
}

.author-name {
  font-weight: bold;
  font-weight: 600;
  color: #1a2a6c;
}

.card-priority {
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.7rem;
}

.priority-high {
  background: #ffe5e5;
  color: #d32f2f;
}

.priority-medium {
  background: #fff4e5;
  color: #f57c00;
}

.priority-low {
  background: #e5ffe7;
  color: #388e3c;
}

.stack-controls {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.stack-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #667eea;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.stack-controls button:active {
  transform: scale(0.95);
}

.stack-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.board-img-outer {
  position: relative;
  width: 380px;
  height: 420px;
  margin: auto;
  /* Base square styling */
  .square {
    position: absolute;
    border-radius: 14px;
    opacity: 0.9;
  }

  /* Sizes */
  .square-large {
    width: 180px;
    height: 180px;
  }

  .square-medium {
    width: 120px;
    height: 120px;
  }

  .square-small {
    width: 70px;
    height: 70px;
  }

  /* Back layer */
  .square-back {
    z-index: 1;
    filter: blur(0.5px);
  }

  /* Front layer */
  .square-front {
    z-index: 4;
  }

  /* 🎨 Colors + positioning */

  /* GOLD */
  .square-large.square-back {
    background: #d4af37;
    top: 0px;
    left: -40px;
  }

  .square-large.square-front {
    background: #f1c232;
    bottom: -20px;
    right: -40px;
  }

  /* RED */
  .square-medium.square-back {
    background: #b91c1c;
    bottom: 60px;
    left: -30px;
  }

  .square-medium.square-front {
    background: #dc2626;
    top: 40px;
    right: -30px;
  }

  /* GREEN */
  .square-small.square-back {
    background: #166534;
    top: 120px;
    left: 40px;
  }

  .square-small.square-front {
    background: #22c55e;
    bottom: 120px;
    right: 60px;
  }
}

/* Image styling */
.board-img-outer img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
