/* start of recent post header */
 .main-container {
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .recent-posts-container,
        .calendar-container {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }


.header {
  text-align: center;
  background-color: var(--accent-color);
  color: white;
  padding: 15px 20px;
  font-size: 20px;
  font-weight: bold;
}

.posts-wrapper {
  height: 400px;
  overflow: hidden;
  position: relative;
  background: white;
}

.posts-scroll {
  display: flex;
  flex-direction: column;
  animation: scrollUp 20s linear infinite;
}

.post-item-recent {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  min-height: 50px;
  display: flex;
  align-items: center;
  background: white;
  transition: background-color 0.3s;
  justify-content: center;
}

.post-item-recent:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.post-item-recent:last-child {
  border-bottom: none;
}

.post-title-recent {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Pause animation on hover */
.posts-wrapper:hover .posts-scroll {
  animation-play-state: paused;
}
/* end of recent post css */
/* Calendar Styles */
.calendar-content {
  padding: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.calendar-nav button:hover {
  background-color: var(--accent-color);
}

.calendar-month-year {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-color);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  flex: 1;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  color: var(--accent-color);
  padding: 10px 5px;
  font-size: 12px;
}

.calendar-day {
  text-align: center;
  padding: 10px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  background-color: #e8f0fe;
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.today {
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
}

.calendar-day.selected {
  background-color: var(--accent-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .recent-posts-container,
  .calendar-container {
    width: 100%;
  }
}