.category-container {
  margin-top: 40px;
  margin-bottom: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-radius: 24px;
  box-shadow: 0 0 15px rgba(0,0,0,0.04);
  background: transparent;
}

.category-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.category-description {
  color: #bdbdbd;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .category-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .category-posts-grid {
    grid-template-columns: 1fr;
  }
}

.category-posts-grid article {
  background: #181818;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-posts-grid article:hover {
  box-shadow: 0 6px 24px rgba(0,71,255,0.08);
}

.category-posts-grid h2, .category-posts-grid h1.entry-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}

.category-posts-grid .entry-content {
  color: #bdbdbd;
  font-size: 1rem;
}

.category-posts-grid a {
  color: #0047ff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.2s;
}

.category-posts-grid a:hover {
  color: #002b8a;
  text-decoration: underline;
}

/* === Category Hero Modern Styles === */
.category-hero {
  position: relative;
  width: 100vw;
  min-height: 44vh;
  height: 44vh;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: 50%;
  transform: translateX(-50%);
}
.category-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.7) grayscale(0.08);
  transition: background-image 0.4s;
}
.category-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.category-hero-title {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 32px rgba(21,54,242,0.18), 0 1px 8px rgba(0,0,0,0.18);
  margin: 0;
  padding: 0 1rem;
}
@media (max-width: 900px) {
  .category-hero {
    min-height: 28vh;
    height: 28vh;
    max-height: 220px;
  }
  .category-hero-title {
    font-size: 2rem;
  }
}

/* === Category Posts List (Hero for each post) === */
.category-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.category-post-hero {
  position: relative;
  width: 100%;
  min-height: 38vh;
  max-height: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  background: #181818;
}
.category-post-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.7) grayscale(0.08);
  transition: background-image 0.4s;
}
.category-post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 2rem 1.5rem 2rem;
  text-align: left;
  background: linear-gradient(0deg, rgba(24,24,24,0.92) 60%, rgba(24,24,24,0.2) 100%);
}
.category-post-hero-title {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
  .category-post-hero {
    min-height: 22vh;
    max-height: 180px;
  }
  .category-post-hero-title {
    font-size: 1.3rem;
  }
}

.category-post-hero-link {
  display: block;
  text-decoration: none;
}
.category-post-hero-link:focus .category-post-hero-bg,
.category-post-hero-link:hover .category-post-hero-bg {
  filter: brightness(0.5) grayscale(0.08);
  transition: filter 0.3s;
}
.category-post-hero-link:focus .category-post-hero-title,
.category-post-hero-link:hover .category-post-hero-title {
  text-decoration: underline;
} 