.category-page {
  background: #fff;
  color: #171717;
}

.category-hero {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.48)),
    url("../img/agency/banner.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.category-hero .container {
  padding: 18px 0 22px;
}

.category-hero .ink-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.3;
  width: 100%;
}

.category-hero .ink-breadcrumb a {
  color: #f7d26f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.category-hero .ink-breadcrumb a:hover {
  color: #fff0bf;
  border-color: currentColor;
}

.category-hero .ink-breadcrumb span {
  color: #fff;
}

.category-hero .ink-breadcrumb .sep {
  opacity: 0.95;
}

.category-hero .ink-breadcrumb .sep-icon {
  display: inline-block;
  color: #ffd977;
  font-weight: 900;
  font-size: 14px;
  transform: translateY(-1px);
}

.category-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.8vw, 48px);
}

.category-layout {
  padding: 24px 0 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.posts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.post-card-image {
  height: 180px;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 14px;
}

.post-card-body h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #202020;
  line-height: 1.2;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.post-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(239, 146, 33, 0.14);
  font-size: 11px;
  font-weight: 600;
}

.post-card-meta .material-icons {
  font-size: 14px;
  color: var(--accent);
}

.post-card-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #2d2d2d;
  text-align: justify;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #22d07d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.read-more .material-icons {
  font-size: 15px;
}

.category-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 92px;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.category-spotlight {
  background: linear-gradient(155deg, #151515 0%, #040404 100%);
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(239, 146, 33, 0.45);
  padding: 14px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.category-spotlight small {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(239, 146, 33, 0.5);
  color: var(--accent);
  background: rgba(239, 146, 33, 0.16);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.category-spotlight h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.14;
}

.category-spotlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.42;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.category-card-cats h3,
.sidebar-card-latest h3,
.category-card-tags h3,
.category-card-search h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-card-cats h3::before,
.sidebar-card-latest h3::before,
.category-card-tags h3::before,
.category-card-search h3::before {
  font-family: "Material Icons";
  font-size: 14px;
  line-height: 1;
  color: #ffc107;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #111;
  border: 1px solid rgba(255, 193, 7, 0.42);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.category-card-cats h3::before {
  content: "category";
}

.sidebar-card-latest h3::before {
  content: "article";
}

.category-card-tags h3::before {
  content: "sell";
}

.category-card-search h3::before {
  content: "manage_search";
}

.category-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.category-search-form input[type="search"] {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}

.category-search-form input[type="search"]:focus {
  border-color: rgba(239, 146, 33, 0.7);
  box-shadow: 0 0 0 3px rgba(239, 146, 33, 0.14);
}

.category-search-form button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #2ad080 0%, #1db569 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-search-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(32, 188, 110, 0.28);
}

.category-search-form button .material-icons {
  font-size: 15px;
}

.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  color: #1f1f1f;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.category-list li a:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 146, 33, 0.72);
  box-shadow: 0 8px 14px rgba(239, 146, 33, 0.16);
  background: linear-gradient(180deg, #fff9ee 0%, #fff3dd 100%);
}

.category-list li em {
  font-style: normal;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff5df 0%, #ffe4b2 100%);
  color: #7a4b00;
  border: 1px solid rgba(239, 146, 33, 0.42);
}

.category-list li.is-active a {
  border-color: rgba(239, 146, 33, 0.7);
  box-shadow: 0 0 0 2px rgba(239, 146, 33, 0.18) inset;
}

.sidebar-card-latest ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sidebar-card-latest li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  padding: 7px 8px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar-card-latest li:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 146, 33, 0.72);
  box-shadow: 0 8px 14px rgba(239, 146, 33, 0.16);
}

.sidebar-card-latest li strong {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #7a4b00;
  background: linear-gradient(180deg, #fff5df 0%, #ffe4b2 100%);
  border: 1px solid rgba(239, 146, 33, 0.42);
}

.sidebar-card-latest li a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-card-latest li a:hover {
  color: #171717;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(239, 146, 33, 0.16);
  color: #1c1c1c;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid rgba(239, 146, 33, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.category-chip-list a::before {
  content: "local_offer";
  font-family: "Material Icons";
  font-size: 14px;
  line-height: 1;
  color: #d37f12;
}

.category-chip-list a:hover {
  transform: translateY(-1px);
  background: rgba(239, 146, 33, 0.23);
  box-shadow: 0 8px 14px rgba(239, 146, 33, 0.16);
}

.category-card a:link,
.category-card a:visited,
.category-card a:active {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .category-hero {
    min-height: 180px;
  }

  .category-hero h1 {
    font-size: 36px;
  }

  .post-card-image {
    height: 170px;
  }

  .post-card-body h2 {
    font-size: 20px;
  }

  .posts-list {
    grid-template-columns: 1fr;
  }
}
