/* =============================================
 * BLOG SECTION
 * Node ID: 100-65303
 * Grid layout with blog cards
 * ============================================= */

.blog-section {
  padding: 80px 240px;
  background: var(--color-background);
}

.blog-section__container {
  max-width: 1440px;
  margin: 0 auto;
}

/* =============================================
 * SECTION HEADER
 * ============================================= */

.blog-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-section__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.blog-section__subtitle {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
  margin: 0;
}

/* =============================================
 * BLOG GRID
 * ============================================= */

.blog-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* =============================================
 * FILTER TABS (Optional)
 * ============================================= */

.blog-section__filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-filter {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-filter--active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-color: transparent;
  color: var(--color-white);
}

/* =============================================
 * CTA SECTION
 * ============================================= */

.blog-section__cta {
  text-align: center;
}

.blog-section__cta-button {
  min-width: 205px;
  height: 48px;
  padding: 0 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(245, 96, 17, 0.25);
}

.blog-section__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 96, 17, 0.35);
}

.blog-section__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 96, 17, 0.25);
}

/* =============================================
 * PAGINATION (Optional)
 * ============================================= */

.blog-section__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination__button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination__button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination__button--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.pagination__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================================
 * EMPTY STATE
 * ============================================= */

.blog-section__empty {
  text-align: center;
  padding: 60px 20px;
}

.blog-section__empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.4;
}

.blog-section__empty-text {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

/* =============================================
 * LOADING STATE
 * ============================================= */

.blog-section--loading .blog-section__grid {
  opacity: 0.5;
  pointer-events: none;
}

/* =============================================
 * FOOTER / VIEW ALL BUTTON SECTION
 * ============================================= */

.blog-section__footer {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .blog-section__footer {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .blog-section__footer {
    margin-top: 24px;
  }
}

/* =============================================
 * RESPONSIVE STYLES
 * ============================================= */

/* Tablet (768px - 1439px) */
@media (max-width: 1439px) {
  .blog-section {
    padding: 60px 40px;
  }

  .blog-section__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .blog-section {
    padding: 40px 16px;
  }

  .blog-section__header {
    margin-bottom: 32px;
  }

  .blog-section__title {
    font-size: 32px;
    line-height: 40px;
  }

  .blog-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .blog-section__filters {
    gap: 12px;
    margin-bottom: 24px;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .blog-section__title {
    font-size: 28px;
    line-height: 36px;
  }

  .blog-section__subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .blog-section__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-section__cta-button {
    width: 100%;
  }

  .blog-filter {
    font-size: 13px;
    padding: 6px 16px;
  }
}
