/* ==========================================================================
   Category Archive Page Styles
   ========================================================================== */

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f5f5;
  font-family: Arial, mukta, sans-serif;
  color: #111;
}

/* --- Skeleton Shimmer Animation --- */
@keyframes cms-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.cms-loading {
  position: relative;
  overflow: hidden;
  background: #e8e8e8 !important;
  border-radius: 4px;
}

.cms-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.35) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1200px 100%;
  animation: cms-shimmer 1.6s ease-in-out infinite;
}

.cms-loading * {
  visibility: hidden !important;
}

/* --- Skeleton Layout --- */
.skeleton-page {
  width: 100%;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 20px;
}

.sk-breadcrumb {
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sk-breadcrumb span {
  height: 12px;
  border-radius: 3px;
}

.sk-breadcrumb .sk-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 3px;
}

.sk-breadcrumb .sk-sep {
  width: 8px;
  min-width: 8px;
}

.sk-breadcrumb .sk-text {
  width: 110px;
}

.sk-title-wrap {
  padding: 0 16px;
  margin-bottom: 16px;
}

.sk-title-bar {
  width: 200px;
  height: 36px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.sk-title-line {
  width: 52px;
  height: 4px;
  border-radius: 3px;
  background: #e41e26;
}

.sk-divider {
  height: 1px;
  background: #d9d9d9;
  margin-top: 8px;
}

/* Skeleton: Featured Block */
.sk-featured {
  padding: 0 16px;
}

.sk-featured-img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

.sk-featured-title {
  height: 16px;
  border-radius: 3px;
  margin-top: 12px;
  width: 95%;
}

.sk-featured-title2 {
  height: 16px;
  border-radius: 3px;
  margin-top: 8px;
  width: 70%;
}

.sk-featured-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk-featured-meta span {
  height: 11px;
  border-radius: 3px;
}

.sk-fm1 {
  width: 24px;
  background: #e8e8e8 !important;
}

.sk-fm2 { width: 78px; }
.sk-fm3 { width: 4px; min-width: 4px; }
.sk-fm4 { width: 62px; }

/* Skeleton: List Items */
.sk-list {
  padding: 8px 16px 0;
}

.sk-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #efefef;
}

.sk-item:last-child {
  border-bottom: none;
}

.sk-item-thumb {
  width: 130px;
  min-width: 130px;
  height: 76px;
  border-radius: 6px;
}

.sk-item-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.sk-item-lines span {
  height: 13px;
  border-radius: 3px;
}

.sk-il1 { width: 100%; }
.sk-il2 { width: 75%; }

.sk-il-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.sk-il-meta span {
  height: 10px;
  border-radius: 3px;
}

.sk-im1 { width: 60px; }
.sk-im2 { width: 4px; min-width: 4px; }
.sk-im3 { width: 54px; }

/* Skeleton: Pagination */
.sk-pagination {
  padding: 16px 16px 0;
  display: flex;
  justify-content: center;
}

.sk-pag-bar {
  width: 280px;
  height: 36px;
  border-radius: 4px;
}

/* --- Main Content Wrapper --- */
.mobile-page {
  width: 100%;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-page.cms-visible {
  opacity: 1;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 16px 8px;
  font-size: 14px;
  color: #4d4d4d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb .home-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  filter: opacity(0.6);
}

.breadcrumb .sep {
  color: #999;
  font-size: 14px;
}

/* --- Section Title --- */
.section-title-wrap {
  padding: 0 16px;
}

.section-title {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  position: relative;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 52px;
  height: 4px;
  background: #e41e26;
  border-radius: 3px;
}

.section-divider {
  height: 1px;
  background: #d9d9d9;
  margin-top: 8px;
}

/* --- Featured Post --- */
.featured-post {
  padding: 0 16px;
}

.featured-post .thumb {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  position: relative;
}

.featured-post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post .title {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  color: #111;
}

.featured-post .meta {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-post .meta .author {
  color: #c62828;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- News List --- */
.news-list {
  padding: 8px 16px 0;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #efefef;
}

.news-item:last-child {
  border-bottom: none;
}

.news-thumb {
  width: 130px;
  min-width: 130px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: #ddd;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.news-meta .author {
  color: #c62828;
  font-weight: 700;
}

/* --- Pagination --- */
.pagination-wrap {
  padding: 16px 16px 0;
  text-align: center;
}

.pagination {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.pagination a,
.pagination span {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-right: 1px solid #d9d9d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  background: #fff;
}

.pagination a:last-child,
.pagination span:last-child {
  border-right: none;
}

.pagination .active {
  background: #e41e26;
  color: #fff;
  font-weight: 700;
}

.pagination a:hover {
  background: #f5f5f5;
}

/* --- Empty State --- */
.no-posts-msg {
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}