
/* Scoped variables for section */
#category-posts-24 {
  --cp-gradient-bg: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  padding: 80px 20px;
  background: var(--cp-gradient-bg);
  overflow: hidden;
  position: relative;
}

/* Header */
#category-posts-24 .section-header {
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
}
#category-posts-24 .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
#category-posts-24 .section-subtitle {
  font-size: 1.125rem;
  opacity: .9;
}

/* Grid */
#category-posts-24 .flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
}

/* Fade-in on scroll */
#category-posts-24 .flip-card-wrapper {
  perspective: 1000px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
#category-posts-24 .flip-card-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card */
#category-posts-24 .flip-card {
  width: 100%;
  height: 360px;
  position: relative;
}
#category-posts-24 .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s ease;
}
#category-posts-24 .flip-card-wrapper:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
#category-posts-24 .flip-card-front,
#category-posts-24 .flip-card-back {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Front side */
#category-posts-24 .flip-card-front {
  background: #fff;
  display: flex;
  flex-direction: column;
}
#category-posts-24 .flip-card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
#category-posts-24 .flip-card-front .front-body {
  padding: 1rem;
  flex: 1;
}
#category-posts-24 .flip-card-front h3 {
  font-size: 1.125rem;
  margin: 0;
  color: #333;
}

/* Back side */
#category-posts-24 .flip-card-back {
  background: rgba(255,255,255,0.95);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}
#category-posts-24 .flip-card-back p {
  font-size: .95rem;
  color: #444;
  flex: 1;
  margin-bottom: 1rem;
}
#category-posts-24 .flip-card-back .btn-readmore {
  align-self: flex-end;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: #66a6ff;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .3s ease, transform .3s ease;
}
#category-posts-24 .flip-card-back .btn-readmore:hover {
  background: #89f7fe;
  transform: translateY(-2px);
}

/* Pagination & Load More */
#category-posts-24 .pagination-wrapper,
#category-posts-24 .load-more-wrapper {
  text-align: center;
  margin-top: 3rem;
}




#call-to-action-4 {
  position: relative;

  background-size: cover;
  background-position: center;
  padding: 80px 15px;
  text-align: center;
  color: #fff;
}
#call-to-action-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}
#call-to-action-4 .content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
#call-to-action-4 h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}
#call-to-action-4 p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}
#call-to-action-4 .btn {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  font-size: 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}
#call-to-action-4 .btn-primary {
  background-color: #ff5722;
  color: #fff;
  border: none;
}
#call-to-action-4 .btn-primary:hover {
  background-color: #e64a19;
}
#call-to-action-4 .btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
#call-to-action-4 .btn-secondary:hover {
  background-color: #fff;
  color: #ff5722;
}


