i.hugeicon-post-grid{
    background-image: url('../img/post_grid.svg');
}
/* Common Styles */
.huge-post-grid {
  display: grid;
  width: 100%;
}

.huge-post-item {
  position: relative;
  overflow: hidden;
}
.huge-post-thumbnail {
  position: relative;
  overflow: hidden;
}

.huge-post-title {
  margin: 0 0 10px;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.3;
}

.huge-post-title a {
  color: inherit;
  text-decoration: none;
}

.huge-post-meta {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}

.huge-post-meta span {
  margin-right: 12px;
  display: inline-block;
}

.huge-post-meta i {
  margin-right: 3px;
}

.huge-post-excerpt {
  margin-bottom: 15px;
  color: #666;
  line-height: 1.5;
}

/* animation */
.huge-post-item.huge-post-style-2,
.huge-post-item.huge-post-style-3,
.huge-post-item.huge-post-style-5,
.huge-post-item.huge-post-style-6,
.huge-post-item.huge-post-style-7 {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Design 1 - Card */

.huge-post-item.huge-post-style-1 {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.huge-post-style-1 .huge-post-content-wrapper {
  padding: 20px 20px 20px 20px;
}

.huge-post-style-1 .huge-post-title {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.huge-post-style-1 .huge-post-title a {
  color: inherit;
  text-decoration: none;
}

.huge-post-style-1 .huge-post-thumbnail {
  overflow: hidden;
}

.huge-post-style-1 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 240px !important;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.huge-post-item.huge-post-style-1 .huge-post-category {
  color: #4b00e7;
  font-weight: bold;
  margin-bottom: 8px;
}

.huge-post-item.huge-post-style-1 .huge-post-footer {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 15px;
  font-size: 0.8em;
  color: #666;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 10px;
  text-transform: capitalize;
}

.huge-post-style-1.huge-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.huge-post-style-1.huge-post-item:hover .huge-post-thumbnail img {
  transform: scale(1.05);
}

.huge-post-style-1.huge-post-item:hover .huge-post-title a {
  color: #4b00e7;
}
.huge-post-style-1 .huge-post-tags {
  text-align: center;
  margin: 10px 0;
}
.huge-post-style-1 .huge-post-tags a {
  display: inline-block;
  background: #f5f5f5;
  color: #000000;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: capitalize;
}

/* Design 2 - Card Overlay */
.huge-post-grid.huge-post-grid-huge-style2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.huge-post-item.huge-post-style-2 {
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: lightsalmon;
}
.huge-post-style-2 .huge-post-title a {
  color: #fff;
}

.huge-post-item.huge-post-style-2 .huge-post-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
}

.huge-post-item.huge-post-style-2 .huge-post-meta-top {
  margin-bottom: 15px;
}

.huge-post-item.huge-post-style-2 .huge-post-date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.huge-post-item.huge-post-style-2 .huge-post-meta-bottom {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.9em;
  opacity: 0.9;
}
.huge-post-style-2 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.huge-post-style-2.huge-post-item:hover .huge-post-thumbnail img {
  transform: scale(1.1);
}

/* Design 3 - Creative Box */
.huge-post-grid.huge-post-grid-huge-style3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.huge-post-item.huge-post-style-3 {
  aspect-ratio: auto;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.huge-post-item.huge-post-style-3 .huge-post-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.huge-post-item.huge-post-style-3 .huge-post-hover-inner {
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.huge-post-item.huge-post-style-3 .huge-post-category {
  display: inline-block;
  background: #4b00e7;
  color: #fff;
  padding: 5px 15px;
  margin-bottom: 15px;
  border-radius: 3px;
  font-size: 0.8em;
  text-transform: uppercase;
}

.huge-post-item.huge-post-style-3 .huge-post-title {
  color: #fff;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.huge-post-item.huge-post-style-3 .huge-post-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}
.huge-post-style-3 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.96, 0.34, 1);
}
.huge-post-style-3 .huge-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.huge-post-style-3.huge-post-item:hover .huge-post-thumbnail img {
  transform: scale(1.1);
}
.huge-post-item.huge-post-style-3:hover .huge-post-overlay {
  opacity: 1;
}

.huge-post-item.huge-post-style-3:hover .huge-post-hover-content,
.huge-post-item.huge-post-style-3:hover .huge-post-hover-inner {
  opacity: 1;
  transform: translateY(0);
}
.huge-post-item.huge-post-style-3:hover .huge-post-title a {
  color: #ddd;
}

/* Style 4 - Split Card with Icon Badge */
.huge-post-item.huge-post-style-4 {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
}

.huge-post-style-4 .huge-post-split-container {
  display: flex;
  min-height: 250px;
}

/* Image side with overlay */
.huge-post-style-4 .huge-post-image-side {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

.huge-post-style-4 .huge-post-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.huge-post-style-4 .huge-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(75, 0, 231, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Icon badge */
.huge-post-style-4 .huge-post-icon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #4b00e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 5px 15px rgba(75, 0, 231, 0.3);
  transition: all 0.3s ease;
  font-size: 20px;
  z-index: 2;
}

/* Content side */
.huge-post-style-4 .huge-post-content-side {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.huge-post-style-4 .huge-post-category {
  color: #4b00e7;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.huge-post-style-4 .huge-post-title {
  font-size: 1.4em;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.huge-post-style-4 .huge-post-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.huge-post-style-4 .huge-post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.huge-post-style-4 .huge-post-meta-footer {
  display: flex;
  gap: 15px;
  font-size: 0.85em;
  color: #777;
}

.huge-post-style-4 .huge-post-meta-footer i {
  margin-right: 5px;
  width: 14px;
  text-align: center;
}

/* Hover Effects */
.huge-post-style-4:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.huge-post-style-4:hover .huge-post-image-side img {
  transform: scale(1.05);
}

.huge-post-style-4:hover .huge-post-overlay {
  opacity: 1;
}

.huge-post-style-4:hover .huge-post-icon-badge {
  transform: scale(1.1) rotate(10deg);
  background: #3a00b5;
}

.huge-post-style-4:hover .huge-post-title a {
  color: #4b00e7;
}

/* Responsive Behavior */
@media (max-width: 768px) {
  .huge-post-style-4 .huge-post-split-container {
    flex-direction: column;
  }

  .huge-post-style-4 .huge-post-image-side {
    flex: 0 0 200px;
  }
}

/* Design 5 - Hover Card */
.huge-post-grid.huge-post-style-5 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.huge-post-item.huge-post-style-5 {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.huge-post-item.huge-post-style-5 .huge-post-content {
  padding: 25px;
  position: relative;
}

.huge-post-item.huge-post-style-5 .huge-post-date {
  display: inline-block;
  background: #f5f5f5;
  color: #0073aa;
  padding: 3px 10px;
  margin-bottom: 15px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
}

.huge-post-item.huge-post-style-5 .huge-post-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.huge-post-item.huge-post-style-5 .huge-read-more {
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 40px;
  height: 40px;
  background: #0073aa;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.huge-post-style-5 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 280px !important;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.96, 0.34, 1);
}
.huge-post-style-5.huge-post-item:hover .huge-post-thumbnail img {
  transform: scale(1.1);
}

.huge-post-item.huge-post-style-5:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.huge-post-item.huge-post-style-5:hover .huge-read-more {
  background: #005177;
  transform: rotate(45deg);
}

/* Style 6 - Modern Card with Icon */
.huge-post-item.huge-post-style-6 {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1.2;
  transition: all 0.3s ease;
}

.huge-post-style-6 .huge-post-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.huge-post-style-6 .huge-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.huge-post-style-6 .huge-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  z-index: 1;
}

.huge-post-style-6 .huge-post-content-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  z-index: 2;
  color: #fff;
}

.huge-post-style-6 .huge-post-meta-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85em;
  opacity: 0.9;
}

.huge-post-style-6 .huge-post-category {
  background: #4b00e7;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
}

.huge-post-style-6 .huge-post-date {
  color: rgba(255, 255, 255, 0.8);
}

.huge-post-style-6 .huge-post-title {
  margin: 0 0 15px;
  font-size: 1.4em;
  line-height: 1.3;
}

.huge-post-style-6 .huge-post-title a {
  color: #fff;
  text-decoration: none;
}

.huge-post-style-6 .huge-post-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.huge-post-style-6 .huge-post-tags {
  width: 60%;
}
.huge-post-style-6 .huge-post-tags a {
  color: rgba(255, 255, 255, 0.9);
}
.huge-post-style-6 .huge-read-more {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 20px;
}

.huge-post-style-6 .huge-read-more:after {
  content: "→";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.huge-post-style-6:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.huge-post-style-6:hover .huge-post-thumbnail img {
  transform: scale(1.05);
}

.huge-post-style-6:hover .huge-read-more:after {
  transform: translateX(3px);
}

/* Style 7 - Card Gradient */
.huge-post-style-7 {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.huge-post-style-7 .huge-post-content {
  position: relative;
  padding: 25px;
  background: #fff;
}

.huge-post-style-7 .huge-post-date {
  position: absolute;
  top: -30px;
  left: 20px;
  background: #4b00e7;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(75, 0, 231, 0.3);
}

.huge-post-style-7 .huge-date-day {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
}

.huge-post-style-7 .huge-date-month {
  font-size: 0.8em;
  text-transform: uppercase;
  margin-top: 3px;
}

.huge-post-style-7 .huge-post-category {
  color: #4b00e7;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.huge-post-style-7 .huge-post-content-inner {
  margin-top: 15px;
}

.huge-post-style-7:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.huge-post-style-7 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* Style 8 - Modern Hover */
.huge-post-style-8 {
  border-radius: 8px;
  overflow: hidden;
}

.huge-post-style-8 .huge-post-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #fff;
}

.huge-post-style-8 .huge-post-title {
  color: #fff;
  text-align: center;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.huge-post-style-8 .huge-post-title a {
  color: #fff;
}

.huge-post-style-8 .huge-post-meta {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
  opacity: 0;
}

.huge-post-style-8 .huge-read-more {
  color: #fff;
  font-size: 1.5em;
  margin-top: 20px;
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
  opacity: 0;
}

.huge-post-style-8 .huge-post-category {
  display: block;
  background: #4b00e7;
  padding: 5px 15px;
  border-radius: 0 0 8px 8px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
}
.huge-post-style-8 .huge-post-category a {
  color: #ffffff;
}
.huge-post-style-8 .huge-post-excerpt {
  background-color: #f7f7f7;
  margin: 15px 0;
  padding: 10px;
  border-radius: 8px;
}

.huge-post-style-8 .huge-post-tags a {
  display: inline-block;
  background: #f5f5f5;
  color: #000000;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: capitalize;
}

.huge-post-style-8:hover .huge-post-hover-content {
  opacity: 1;
}

.huge-post-style-8:hover .huge-post-title,
.huge-post-style-8:hover .huge-post-meta,
.huge-post-style-8:hover .huge-read-more {
  transform: translateY(0);
  opacity: 1;
}

.huge-post-style-8 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* Style 9 - Creative Tilt */
.huge-post-style-9 {
  perspective: 1000px;
}

.huge-post-style-9 .huge-post-tilt-box {
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  border-radius: 8px;
  overflow: hidden;
}

.huge-post-style-9 .huge-post-content {
  padding: 25px;
  background: #fff;
}

.huge-post-style-9 .huge-post-category {
  color: #4b00e7;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 8px;
}

.huge-post-style-9 .huge-read-more {
  display: inline-block;
  color: #4b00e7;
  font-weight: 600;
  margin-top: 15px;
  position: relative;
}
.huge-post-style-9 .huge-post-tags a {
  display: inline-block;
  background: #f5f5f5;
  color: #000000;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: capitalize;
}

.huge-post-style-9 .huge-read-more:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #4b00e7;
  transition: width 0.3s ease;
}

.huge-post-style-9:hover .huge-post-tilt-box {
  transform: rotateY(5deg) rotateX(2deg);
  /* box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15); */
}

.huge-post-style-9:hover .huge-read-more:after {
  width: 100%;
}
.huge-post-style-9 .huge-post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: 260px;
  object-fit: cover;
  transition: all 0.4s ease;
}

/* Style 10 - Minimal List */
.huge-post-style-10 {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.huge-post-style-10 .huge-post-date {
  min-width: 60px;
  margin-right: 20px;
  text-align: center;
}

.huge-post-style-10 .huge-date-day {
  font-size: 1.8em;
  font-weight: bold;
  color: #4b00e7;
  line-height: 1;
}

.huge-post-style-10 .huge-date-month {
  font-size: 0.85em;
  color: #777;
  text-transform: uppercase;
}

.huge-post-style-10 .huge-post-title {
  margin-bottom: 5px;
}

.huge-post-style-10 .huge-post-meta {
  margin-bottom: 5px;
}

.huge-post-style-10:hover .huge-post-title a {
  color: #4b00e7;
}

/* Load More Button Styles */
.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.load-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 24px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.load-more-btn:hover {
  background-color: #005177;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.loadmore-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Pagination Styles */
.post-grid-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  font-size: 16px;
}

.post-grid-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.post-grid-pagination li {
  margin: 0;
}

.post-grid-pagination a,
.post-grid-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-grid-pagination a {
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

.post-grid-pagination a:hover {
  background-color: #e9e9e9;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-grid-pagination .current {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
  font-weight: 500;
}

.post-grid-pagination .dots {
  background-color: transparent;
  border: none;
}
/* Pagination Loading Overlay */
.pagination-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pagination-loading-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error Messages */
.loadmore-error,
.pagination-error {
  padding: 10px 15px;
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
  margin: 15px 0;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Debug styles */
.pagination-loading {
  padding: 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  text-align: center;
  margin: 20px 0;
}

.pagination-error {
  padding: 15px;
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
  margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .post-grid-pagination ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .load-more-btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* ******************************************************************** Columns Responsive **********************************/

/* Column classes */
.huge-post-grid.huge-post-columns-1 {
  grid-template-columns: repeat(1, 1fr);
}
.huge-post-grid.huge-post-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.huge-post-grid.huge-post-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.huge-post-grid.huge-post-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
.huge-post-grid.huge-post-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}
.huge-post-grid.huge-post-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}
.huge-post-grid.huge-post-columns-7 {
  grid-template-columns: repeat(6, 1fr);
}
.huge-post-grid.huge-post-columns-8 {
  grid-template-columns: repeat(6, 1fr);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .huge-post-grid.huge-post-columns-4,
  .huge-post-grid.huge-post-columns-5,
  .huge-post-grid.huge-post-columns-6,
  .huge-post-grid.huge-post-columns-7,
  .huge-post-grid.huge-post-columns-8 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .huge-post-grid.huge-post-columns-3,
  .huge-post-grid.huge-post-columns-4,
  .huge-post-grid.huge-post-columns-5,
  .huge-post-grid.huge-post-columns-6,
  .huge-post-grid.huge-post-columns-7,
  .huge-post-grid.huge-post-columns-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .huge-post-grid {
    grid-template-columns: 1fr !important;
  }
}
