/* =========================
   Category Archive
   File: assets/css/category.css
========================= */

.category-page {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f7fbff 100%);
}

.category-hero {
  position: relative;
  padding: 78px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(49, 91, 255, .16), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(100, 32, 255, .08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-bottom: 1px solid #e6edf8;
}

.category-hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;
  width: 720px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 32, 255, .16), transparent 66%);
  pointer-events: none;
}

.category-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
}

.category-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid #dce7ff;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #175cff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 10px 28px rgba(17,42,103,.06);
}

.category-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 0 5px rgba(23,82,255,.08);
}

.category-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  color: #06102e;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .96;
  font-weight: 950;
  letter-spacing: -.07em;
}

.category-description {
  max-width: 760px;
  margin: 0;
  color: #33415f;
  font-size: 18px;
  line-height: 1.65;
}

.category-description p { margin: 0; }

.category-hero-card { display: flex; justify-content: center; }

.category-hero-icon {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #175cff;
  background:
    radial-gradient(circle at center, #fff 0 48%, transparent 49%),
    linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid #dfe7f6;
  box-shadow:
    0 30px 80px rgba(49, 91, 255, .16),
    inset 0 0 0 18px rgba(239, 244, 255, .86);
}

.category-hero-icon svg {
  width: 84px;
  height: 84px;
  display: block;
}

/* Featured post */
.category-featured-section { padding: 48px 0 20px; }

.category-featured-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: center;
  padding: 22px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(19, 55, 120, .08);
}

.category-featured-thumb {
  min-height: 330px;
  overflow: hidden;
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff5ff, #fff 46%, #dce8ff);
  border: 1px solid #e4ebf9;
}

.category-featured-img,
.category-article-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.category-featured-content { padding: 8px 10px; }

.article-category {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #315bff;
  background: #eef3ff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.category-featured-content h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 950;
}

.category-featured-content h2 a,
.category-article-content h3 a {
  color: #071026;
  text-decoration: none;
}

.category-featured-content p {
  margin: 0 0 18px;
  color: #56627b;
  font-size: 15px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #66708c;
  font-size: 11px;
  font-weight: 850;
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Article grid */
.category-posts-section { padding: 38px 0 68px; }

.category-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-section-head h2 {
  margin: 0;
  color: #071026;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.045em;
}

.category-section-head p {
  margin: 0;
  color: #66708c;
  font-size: 14px;
}

.category-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-article-card {
  overflow: hidden;
  border: 1px solid #dfe7f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(19,55,120,.055);
  transition: .25s ease;
}

.category-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(19,55,120,.1);
}

.category-article-thumb {
  display: block;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg,#eff5ff,#fff 46%,#dce8ff);
  border-bottom: 1px solid #e4ebf9;
}

.category-thumb-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 28%, rgba(49, 91, 255, .28), transparent 22%),
    linear-gradient(135deg, #eff5ff, #ffffff 44%, #dce8ff);
}

.category-article-content { padding: 20px; }

.category-article-content h3 {
  margin: 0 0 10px;
  color: #071026;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -.035em;
}

.category-article-content p {
  margin: 0 0 16px;
  color: #56627b;
  font-size: 13px;
  line-height: 1.55;
}

.category-article-content .article-meta { margin-bottom: 0; }

.category-pagination { margin-top: 28px; }

.category-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #dfe7f6;
  border-radius: 10px;
  background: #fff;
  color: #315bff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
  color: #fff;
  border-color: #315bff;
  background: linear-gradient(135deg, #075cff, #6420ff);
}

.category-empty {
  padding: 34px;
  border: 1px solid #dfe7f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(19, 55, 120, .08);
}

.category-empty h2 {
  margin: 0 0 10px;
  color: #071026;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.category-empty p {
  margin: 0 0 18px;
  color: #56627b;
}

@media (max-width: 980px) {
  .category-hero-grid,
  .category-featured-card { grid-template-columns: 1fr; }
  .category-hero-card { justify-content: flex-start; }
  .category-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-featured-thumb { min-height: 260px; }
}

@media (max-width: 680px) {
  .category-hero { padding: 48px 0 36px; }
  .category-hero h1 { font-size: 42px; }
  .category-description { font-size: 15px; }
  .category-hero-icon { width: 150px; height: 150px; }
  .category-hero-icon svg { width: 62px; height: 62px; }
  .category-section-head { display: block; }
  .category-section-head h2 { margin-bottom: 8px; }
  .category-posts-grid { grid-template-columns: 1fr; }
  .category-featured-card { padding: 16px; }
  .category-article-content { padding: 18px; }
}


/* Home-style shared polish */
.category-hero,
.all-categories-hero,
.single-service-hero{
  background:
    radial-gradient(circle at 82% 28%, rgba(49,91,255,.16), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(100,32,255,.08), transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f6faff 100%);
}
.category-eyebrow,
.service-eyebrow{
  box-shadow:0 10px 28px rgba(17,42,103,.06);
}
.category-featured-card,
.post-card,
.single-service-card,
.single-service-panel{
  border-color:rgba(220,230,255,.96);
  box-shadow:0 14px 40px rgba(25,51,120,.07);
}
