/* ════════════════════════════════════════════
   CATEGORY LANDING PAGE — category.css
   Category-specific styles only.
   Nav, footer, grid cards, pagination, sort bar
   are covered by styles.css and browse.css.
════════════════════════════════════════════ */

/* ── Category Hero ───────────────────────────────────────────────────── */
.cat-hero {
  /* background-color set via inline style (PHP category color) */
  width: 100%;
  padding: 56px 24px 48px;
  position: relative;
}

.cat-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cat-hero-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.cat-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}

.cat-hero-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.80);
  margin: 0 0 20px;
  line-height: 1.5;
}

.cat-hero-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
}

/* ── Featured Project ────────────────────────────────────────────────── */
.cat-featured-wrap {
  background: #fff;
  padding: 40px 24px;
  border-bottom: 1px solid #eef2f6;
}

.cat-featured-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cat-featured-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3b1;
  margin: 0 0 16px;
}

.cat-featured-card {
  display: flex;
  gap: 32px;
  background: #f4f7fb;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(13,27,42,0.13);
}

.cat-featured-img {
  width: 380px;
  flex-shrink: 0;
  height: 240px;
  overflow: hidden;
}

.cat-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cat-featured-body {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-featured-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  /* color set via inline style (category color) */
}

.cat-featured-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0d1b2a;
  margin: 8px 0 12px;
  line-height: 1.3;
}

.cat-featured-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: #6b7f8e;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.cat-featured-stats {
  display: flex;
  gap: 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a6274;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cat-featured-cta {
  display: inline-block;
  padding: 11px 24px;
  background: #00b4d8;
  color: #fff;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.cat-featured-cta:hover {
  background: #0096b8;
}

/* ── Subcategory Pills ───────────────────────────────────────────────── */
.cat-subcats-wrap {
  background: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid #eef2f6;
}

.cat-subcats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cat-subcats-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa3b1;
  margin-right: 8px;
}

.subcat-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #d0dce5;
  background: #fff;
  color: #4a6274;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.subcat-pill:hover {
  border-color: #00b4d8;
  color: #00b4d8;
}

.subcat-pill.active {
  background: var(--cat-color, #00b4d8);
  border-color: var(--cat-color, #00b4d8);
  color: #fff;
}

/* ── Browse Section ──────────────────────────────────────────────────── */
.cat-browse-wrap {
  background: #f4f7fb;
  padding: 32px 24px 80px;
}

.cat-browse-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cat-featured-card {
    flex-direction: column;
  }

  .cat-featured-img {
    width: 100%;
    height: 200px;
  }

  .cat-featured-body {
    padding: 20px;
  }

  .cat-hero {
    padding: 40px 16px 36px;
  }

  .cat-featured-wrap {
    padding: 28px 16px;
  }

  .cat-subcats-wrap {
    padding: 16px;
  }

  .cat-browse-wrap {
    padding: 24px 16px 80px;
  }
}
