/* blog.css */
:root {
  --primary-color: #3cc453;
  --bg-color: #222;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-color: #fff;
  --text-secondary: #aaa;
}

/* Hashtag-Style Category Filter */
.category-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.category-filter button {
  padding: 6px 12px;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter button:hover,
.category-filter button.active {
  background: var(--primary-color);
  color: #000;
}

/* Blog Grid Styles */
.blog-grid {
  display: grid;
  gap: 30px;
  margin: 40px 0;
}

/* On large screens, force exactly three items per row */
@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* For screens below 1200px, use responsive behavior */
@media (max-width: 1199px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.blog-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-thumbnail {
  height: 120px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.1); /* Optional: adds a subtle background */
}

.blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from 'cover' to 'contain' */
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-content h2 {
  font-size: 20px;
}

.blog-post-content h3 {
  font-size: 18px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-category {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 10px 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.blog-card p {
  margin: 10px 0;
  color: #ddd;
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination a {
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary-color);
  color: #000;
}

.pagination a.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Media Kit Specific Styles */
.media-kit-assets .card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.media-kit-assets .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.media-kit-assets .card-img-top {
  height: 180px;
  object-fit: contain;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.media-kit-assets .card-body {
  padding: 15px;
}

.media-kit-assets .card-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.media-kit-assets .btn {
  background: var(--primary-color);
  color: #000;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.media-kit-assets .btn:hover {
  opacity: 0.9;
}

.color-swatches {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.color-swatch {
  padding: 15px;
  border-radius: 8px;
  min-width: 120px;
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.color-swatch span:first-child {
  font-size: 0.9rem;
}

.color-swatch span:last-child {
  font-size: 0.8rem;
  opacity: 0.8;
}

.brand-guidelines h3 {
  margin: 25px 0 15px;
  color: var(--primary-color);
}

.callout {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(40, 40, 40, 0.6));
  padding: 32px;
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #f1f1f1;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  text-align: center;
}

.callout h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

.callout p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.back-to-blog {
  margin: 40px 0 20px;
  text-align: center;
}

.back-to-blog .btn {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.back-to-blog .btn:hover {
  background: var(--primary-color);
  color: #000;
}

@media (max-width: 767px) {
  .blog-thumbnail {
    height: 120px;
  }

  .media-kit-assets .card-img-top {
    height: 140px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .category-filter button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .color-swatches {
    gap: 10px;
  }

  .color-swatch {
    min-width: 100px;
    padding: 10px;
  }
}

.blog .container {
  padding: 20px 15px !important;
}

.blog .lead {
  font-size: 0.9rem;
}

/* Asset Gallery Styles */
.asset-gallery {
  margin: 40px 0;
}

.asset-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.asset-card img {
  width: 100%;
  height: auto;
  display: block;
  padding: 20px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.asset-caption {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.asset-caption h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
}

.asset-caption p {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .asset-card {
    margin-bottom: 20px;
  }

  .asset-card img {
    padding: 15px;
  }

  .asset-caption {
    padding: 15px;
  }
}

/* Lightbox styles (if you want to enable click-to-enlarge) */
.asset-card {
  cursor: pointer;
}

.mfp-image-holder .mfp-content {
  max-width: 80%;
}

.mfp-zoom-in .mfp-image {
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.mfp-zoom-in.mfp-ready .mfp-image {
  opacity: 1;
  transform: scale(1);
}

.mfp-zoom-in.mfp-removing .mfp-image {
  transform: scale(0.8);
  opacity: 0;
}
