/* ==========================================================================
   Oripa Select - Blog / Article List Page Styles
   ========================================================================== */

/* --- SWELL Layout Override (same as top page) --- */
#body_wrap.oripa-blog-page #content.l-content.l-container {
  --container_size: 100% !important;
  --swl-pad_container: 0px !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#body_wrap.oripa-blog-page .l-sidebar {
  display: none !important;
}
#body_wrap.oripa-blog-page {
  background: #f4f7fa;
}
#body_wrap.oripa-blog-page #post_slider {
  display: none !important;
}

/* --- Main --- */
.oripa-blog-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* --- Header --- */
.oripa-blog-header {
  text-align: center;
  margin-bottom: 36px;
}

.oripa-blog-header__title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.oripa-blog-header__lead {
  margin: 0;
  font-size: 15px;
  color: #5b6b79;
  line-height: 1.8;
}

/* --- Category Filters --- */
.oripa-blog-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.oripa-blog-filter {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid #e3eaf1;
  border-radius: 999px;
  background: #fff;
  color: #3a4a58;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.oripa-blog-filter:hover {
  border-color: #49b6ff;
  background: #e8f4fd;
  text-decoration: none;
  color: #1478bd;
}

.oripa-blog-filter.-active {
  background: #49b6ff;
  border-color: #49b6ff;
  color: #fff;
}

/* --- Card Grid --- */
.oripa-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.oripa-blog-card {
  background: #fff;
  border: 1px solid #e3eaf1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #1e2a35;
  box-shadow: 0 2px 10px rgba(30, 60, 90, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.oripa-blog-card:hover {
  box-shadow: 0 4px 14px rgba(40, 120, 190, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
  color: #1e2a35;
}

.oripa-blog-card__thumb {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, #e8f4fd, #e8f4fd 12px, #f2f9ff 12px, #f2f9ff 24px);
  overflow: hidden;
}

.oripa-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oripa-blog-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.oripa-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oripa-blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.oripa-blog-card__date {
  font-size: 12px;
  color: #9aa8b5;
}

.oripa-blog-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.oripa-blog-card__excerpt {
  margin: 0;
  font-size: 13px;
  color: #5b6b79;
  line-height: 1.7;
}

/* --- Pagination --- */
.oripa-blog-pagination {
  margin-top: 48px;
  text-align: center;
}

.oripa-blog-pagination .page-numbers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.oripa-blog-pagination .page-numbers li {
  display: inline-block;
}

.oripa-blog-pagination .page-numbers a,
.oripa-blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.oripa-blog-pagination .page-numbers a {
  background: #fff;
  border: 1px solid #e3eaf1;
  color: #3a4a58;
}

.oripa-blog-pagination .page-numbers a:hover {
  background: #e8f4fd;
  border-color: #49b6ff;
  color: #1478bd;
}

.oripa-blog-pagination .page-numbers .current {
  background: #49b6ff;
  border: 1px solid #49b6ff;
  color: #fff;
}

/* --- Empty --- */
.oripa-blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #7d8b98;
  font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .oripa-blog-main {
    padding: 32px 16px 60px;
  }

  .oripa-blog-header__title {
    font-size: 24px;
  }

  .oripa-blog-grid {
    grid-template-columns: 1fr;
  }
}
