/* =========================
   All Categories Page
   File: assets/css/page-categories.css
========================= */

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

.all-categories-hero {
  position: relative;
  padding: 78px 0 56px;
  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;
}

.all-categories-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;
}

.all-categories-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);
}

.all-categories-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;
}

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

.all-categories-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.all-categories-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #dfe7f6;
  border-radius: 999px;
  background: #fff;
  color: #66708c;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(17,42,103,.05);
}

.all-categories-stats b {
  color: #175cff;
  font-size: 15px;
}

.all-categories-visual {
  display: flex;
  justify-content: center;
}

.all-categories-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);
}

.all-categories-icon svg {
  width: 84px;
  height: 84px;
  display: block;
}

.all-categories-section {
  padding: 54px 0 72px;
}

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

.category-list-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
  border: 1px solid #dfe7f6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(19,55,120,.055);
  transition: .25s ease;
}

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

.category-list-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.category-list-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #175cff;
  background: linear-gradient(135deg, #eef4ff, #fff);
  border: 1px solid #dfe7f6;
}

.category-list-icon svg {
  width: 24px;
  height: 24px;
}

.category-list-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.035em;
}

.category-list-card h2 a {
  color: #071026;
  text-decoration: none;
}

.category-count {
  color: #66708c;
  font-size: 11px;
  font-weight: 850;
}

.category-list-description {
  margin: 0 0 18px;
  color: #56627b;
  font-size: 14px;
  line-height: 1.6;
}

.category-list-description p {
  margin: 0;
}

.category-latest-posts {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #e6edf8;
}

.category-latest-posts strong {
  margin-bottom: 2px;
  color: #071026;
  font-size: 12px;
  font-weight: 950;
}

.category-latest-posts a {
  color: #52607a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
}

.category-latest-posts a:hover {
  color: #175cff;
}

.category-card-link {
  margin-top: auto;
}

.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;
  color: #56627b;
}

@media (max-width: 980px) {
  .all-categories-hero-grid {
    grid-template-columns: 1fr;
  }

  .all-categories-visual {
    justify-content: flex-start;
  }

  .all-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .all-categories-hero {
    padding: 48px 0 36px;
  }

  .all-categories-hero h1 {
    font-size: 42px;
  }

  .all-categories-description {
    font-size: 15px;
  }

  .all-categories-icon {
    width: 150px;
    height: 150px;
  }

  .all-categories-icon svg {
    width: 62px;
    height: 62px;
  }

  .all-categories-grid {
    grid-template-columns: 1fr;
  }

  .category-list-card {
    padding: 20px;
  }
}


/* 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);
}
