/* =========================================================
   GÁI GÚ VIỆT — CATEGORY ARCHIVE INTRO
   Renders immediately under the archive H1 on page one only.
   ========================================================= */

.ggv-category-intro {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(181, 61, 91, .30);
  border-left: 4px solid #b53d5b;
  border-radius: 12px;
  color: #efe8e9;
  background:
    radial-gradient(circle at 96% 8%, rgba(201, 154, 77, .15), transparent 33%),
    linear-gradient(135deg, #2a1821 0%, #1c1b25 68%, #15151d 100%);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .16);
  font-family: var(--ggv-font-body, "Inter", Arial, sans-serif);
}

.ggv-category-intro:after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -63px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(201, 154, 77, .19);
  border-radius: 50%;
  pointer-events: none;
}

.ggv-category-intro__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #f2d59a;
  font-family: var(--ggv-font-heading, "Quicksand", Arial, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ggv-category-intro__eyebrow:before {
  content: "✦";
  color: #c99a4d;
  font-size: 12px;
}

.ggv-category-intro__content {
  position: relative;
  z-index: 1;
  color: #ded5d9;
  font-size: 13px;
  line-height: 1.72;
}

.ggv-category-intro__content p {
  margin: 0;
}

.ggv-category-intro__content p + p {
  margin-top: 9px;
}

.ggv-category-intro__content strong {
  color: #fff9ef;
  font-weight: 700;
}

.ggv-category-intro__links {
  color: #cabec4;
  font-size: 12px;
}

.ggv-category-intro__links span {
  color: #f2d59a;
  font-weight: 700;
}

.ggv-category-intro__links a {
  color: #fff1c8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 154, 77, .42);
}

.ggv-category-intro__links a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.ggv-category-intro__links i {
  padding: 0 2px;
  color: #b53d5b;
  font-style: normal;
}

@media only screen and (max-width: 719px) {
  .ggv-category-intro {
    margin-bottom: 18px;
    padding: 15px 14px;
    border-radius: 10px;
  }

  .ggv-category-intro__content {
    font-size: 12px;
    line-height: 1.66;
  }

  .ggv-category-intro__links {
    font-size: 11px;
  }
}

/* =========================================================
   GGV CATEGORY PROFILE GRID
   Category-only listing layout: 3 cards desktop / 2 tablet / 2 mobile,
   reducing to 1 only on very narrow screens. This does not affect homepage,
   search, blog, or other Hueman post grids.
   ========================================================= */

.ggv-category-listing-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  color: #f4edef;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 154, 77, .12), transparent 30%),
    linear-gradient(135deg, #211b25 0%, #181820 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  font-family: var(--ggv-font-body, "Inter", Arial, sans-serif);
}

.ggv-category-listing-toolbar__copy {
  min-width: 0;
}

.ggv-category-listing-toolbar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #efcf88;
  font-family: var(--ggv-font-heading, "Quicksand", Arial, sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ggv-category-listing-toolbar__eyebrow:before {
  content: "✦";
  color: #c99a4d;
  font-size: 11px;
}

.ggv-category-listing-toolbar h2 {
  margin: 0;
  color: #fffaf3;
  font-family: var(--ggv-font-heading, "Quicksand", Arial, sans-serif);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.ggv-category-listing-toolbar__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.ggv-category-listing-toolbar__count,
.ggv-category-listing-toolbar__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: #dad3d8;
  background: rgba(0, 0, 0, .16);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ggv-category-listing-toolbar__count i {
  color: #d49c62;
}

.ggv-category-listing-toolbar__filter {
  color: #311914;
  border-color: rgba(255, 225, 168, .75);
  background: linear-gradient(135deg, #f4d79d 0%, #d99e61 100%);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ggv-category-listing-toolbar__filter:hover {
  color: #25110e;
  box-shadow: 0 8px 16px rgba(201, 122, 84, .28);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Each PHP post row contains exactly 3 items on desktop. CSS grid keeps
   cards aligned even when title lengths, labels, or image dimensions vary. */
body.category #grid-wrapper.ggv-category-profile-grid {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

body.category #grid-wrapper.ggv-category-profile-grid .post-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.category #grid-wrapper.ggv-category-profile-grid .grid-item {
  display: flex;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.category #grid-wrapper.ggv-category-profile-grid .grid-item .post-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

body.category #grid-wrapper.ggv-category-profile-grid .grid-item .post-title {
  min-height: 44px;
}

body.category #grid-wrapper.ggv-category-profile-grid .grid-item .ggv-card-meta {
  margin-top: auto;
}

/* Hueman dual-sidebar layouts have a substantially narrower content area.
   Two cards prevent cramped titles and unreadable status badges. */
@media only screen and (min-width: 1100px) {
  body.col-3cm #grid-wrapper.ggv-category-profile-grid .post-row,
  body.col-3cl #grid-wrapper.ggv-category-profile-grid .post-row,
  body.col-3cr #grid-wrapper.ggv-category-profile-grid .post-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 1099px) {
  body.category #grid-wrapper.ggv-category-profile-grid .post-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.category #grid-wrapper.ggv-category-profile-grid .grid-item .post-title {
    min-height: 38px;
  }
}

@media only screen and (max-width: 719px) {
  .ggv-category-listing-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .ggv-category-listing-toolbar__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .ggv-category-listing-toolbar__count,
  .ggv-category-listing-toolbar__filter {
    flex: 1 1 0;
  }

  body.category #grid-wrapper.ggv-category-profile-grid {
    gap: 10px;
  }

  body.category #grid-wrapper.ggv-category-profile-grid .post-row {
    gap: 10px;
  }

  body.category #grid-wrapper.ggv-category-profile-grid .grid-item .post-title {
    min-height: 36px;
  }
}

@media only screen and (max-width: 389px) {
  body.category #grid-wrapper.ggv-category-profile-grid .post-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.category #grid-wrapper.ggv-category-profile-grid .grid-item .post-title {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ggv-category-listing-toolbar__filter {
    transition: none !important;
  }
}

