#blogsec {
 display: flex;
 flex-wrap: wrap;
 width: 100%;
 gap: 20px;
 padding: 20px;
 /* background-color: #f8f9fa; RegularVersion */
 background-color: #666881; /* Halloween */
 border-radius: 10px;
 box-sizing: border-box;
}

@media (max-width: 768px) {
  #blogsec {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  #newblogs {
    width: 100%;
    margin-bottom: 0;
    padding: 15px;
    min-width: unset;
  }
  
  #topblogs {
    width: 100%;
    padding: 15px;
    min-width: unset;
  }
}

#newblogs {
  flex: 1;
  min-width: 300px;
  /*background: #ff6d87; RegularVersion */
  background: #b94b5e; /* Halloween */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

#newblogs h2 {
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #e34772;
  padding-bottom: 10px;
}

#topblogs {
  flex: 1;
  min-width: 300px;
  /* background: #ff9d47;  RegularVersion */
  background: #dc9b61; /* Halloween */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #topblogs {
    width: 100%;
    top: 0;
    padding: 15px;
  }
}

#topblogs h2 {
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #eb7b1b;
  padding-bottom: 10px;
}

.blogbox {
  display: block;
  margin-bottom: 19px;
  min-height: 80px;
  box-shadow: 5px 7px 1px 0px rgb(159 151 151 / 82%);
  overflow: hidden;
  border-radius: 6px;
  background: white;
  padding: 8px;
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-out;
  will-change: opacity, transform;
  transition: all 0.3s ease;
}

.blogbox:hover {
  transform: translateY(-2px);
  box-shadow: 5px 7px 1px 0px rgb(159 151 151 / 82%);
}

@media (max-width: 768px) {
  .blogbox {
    margin-bottom: 15px;
    min-height: 60px;
  }
}

.userava {
  background-repeat: no-repeat;
  margin-right: 10px;
  float: left;
  background-size: 140%;
  background-position: top;
  width: 70px;
  height: 85.5px;
}

@media (max-width: 480px) {
  .userava {
    width: 50px;
    height: 61px;
    background-size: 140%;
    background-position: top;
    margin-right: 8px;
  }
}

.content {
  width: calc(100% - 90px);
  margin-left: 80px;
  background-color: #fbfbfb;
  max-height: 137px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .content {
    width: calc(100% - 90px);
    margin-left: 80px;
  }
}

@media (max-width: 480px) {
  .content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
}


.title {
  background-color: #f1f1f1;
  margin-bottom: 5px;
  overflow: hidden;
white-space: nowrap;
}

.title h3 {
  overflow: hidden;
  margin-bottom: 2px;
  text-overflow: ellipsis;
  margin-top: 0px;
  color: #616161;
  font-size: 17px;
  margin-left: 5px;
}
.firstspan {
  font-size: 15px;
  color: #61616185;
}
.content p {
  margin-top: 0px;
  margin-bottom: 0px;
}

.innercontent {
  padding: 0px 0px 30px 0px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
  text-overflow: ellipsis;
  word-wrap: break-word;
  max-height: 80px;
  line-height: 1.4em;
}
.innercontent p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
}


.title, .title h3, .title span, .title a, .title p {
  text-decoration: none;
}

a { color: inherit; }

.buybtn {
  border-radius: 4px;
  /* background-color: #f5b747; */
  background-color: #d3844e; /* Halloween */
  color: #000;
  padding: 6px;
  font-weight: bold;
  border: 0;
  box-shadow: none;
  margin-right: 2px;
  margin-bottom: 6px;
}

.spoilerz {
  background-color: #f973ad8f;
  color: #f973add6;
  text-align: center;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 17px;
  padding: 7px;
}

.date {
  color: #9292927a;
  font-size: 13px;
  margin-left: 15px;
}

#blognav p {
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
  text-align: center;
  font-weight: bold;
  background-color: #b7b7b7;
  color: white;
}

.filter-buttons {
  text-align: center;
  margin-bottom: 15px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: #e0e0e0;
}

.filter-btn.active {
  background-color: #f5b747;
  color: #000;
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 6px 10px;
    margin: 2px 3px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .filter-btn {
    padding: 4px 8px;
    margin: 2px 2px;
    font-size: 11px;
    display: inline-block;
  }
}

@media (max-width: 360px) {
  .filter-btn {
    padding: 3px 6px;
    margin: 1px 1px;
    font-size: 10px;
  }
}

.new-blog-indicator {
  position: relative;
}

.new-blog-indicator::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background-color: #4CAF50;
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: 10;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.2;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}