
/* Optimized styles for better performance and responsiveness */

/* Grid system improvements */
.equal-height-cards {
  display: flex;
  flex-wrap: wrap;
}

.grid-item {
  display: flex;
  margin-bottom: 30px;
}

.grid-item article {
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Image optimizations */
.post-image-container {
  overflow: hidden;
  position: relative;
  padding-top: 66.67%; /* 3:2 aspect ratio */
}

.post-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-image-container:hover img {
  transform: scale(1.05);
}

/* Category cloud styling */
.category-cloud {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  transition: all 0.3s ease;
}

.category-cloud:hover {
  background: linear-gradient(45deg, #ff8e8e, #ff6b6b);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Pagination styling */
.pagination {
  margin-top: 50px;
}

.pagination .page-link {
  border-radius: 30px;
  margin: 0 5px;
  color: #555;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  color: #ff6b6b;
}

/* Iframe container */
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive design improvements */
@media (max-width: 767px) {
  .grid-item {
    width: 100%;
  }
  
  h4.title-border {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .grid-item {
    width: 50%;
  }
}

/* SEO improvements - hide content that's dynamically loaded */
.hidden-seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
