/* ResumeGrow — Blog category archive
   Mirrors the Careerflow.ai category page layout.
   All colors/fonts use the theme's CSS variables when present, with fallbacks. */

:root {
  --rg-blue:        var(--brand-blue, #4D7CFE);
  --rg-blue-dark:   var(--brand-blue-dark, #3B66E0);
  --rg-navy:        var(--brand-navy, #1A2B4C);
  --rg-text:        var(--brand-text, #1A2B4C);
  --rg-muted:       var(--brand-muted, #6B7280);
  --rg-border:      var(--brand-border, #E5E7EB);
  --rg-bg:          var(--brand-bg, #FFFFFF);
  --rg-bg-soft:     var(--brand-bg-soft, #F6F8FF);

  --rg-pill-jobsearch-bg:    #FCE4EC;
  --rg-pill-jobsearch-fg:    #D6336C;
  --rg-pill-interviews-bg:   #DCEBFF;
  --rg-pill-interviews-fg:   #2C5BE0;
  --rg-pill-default-bg:      #EEF0F4;
  --rg-pill-default-fg:      #1A2B4C;

  --rg-radius: 14px;
  --rg-shadow: 0 6px 20px rgba(20, 40, 90, 0.06);
  --rg-shadow-lg: 0 16px 40px rgba(20, 40, 90, 0.12);
  --rg-font: var(--brand-font, "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
}

.rg-blog-archive { font-family: var(--rg-font); color: var(--rg-text); background: var(--rg-bg); }
.rg-container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.rg-hero {
  background:
    radial-gradient(1200px 500px at 50% 0%, #EAF0FF 0%, rgba(234,240,255,0) 70%),
    linear-gradient(180deg, #F5F7FF 0%, #FFFFFF 100%);
  padding: 96px 24px 72px;
  text-align: center;
}
.rg-hero__inner { max-width: 900px; margin: 0 auto; }
.rg-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--rg-navy);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.rg-hero__subtitle { color: var(--rg-muted); font-size: 1.125rem; margin: 0; }

/* FEATURED */
.rg-featured { padding: 56px 0; }
.rg-featured__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.rg-featured__card {
  display: block; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #4D7CFE 0%, #3B66E0 100%);
  border-radius: var(--rg-radius); padding: 28px; min-height: 360px;
  position: relative; box-shadow: var(--rg-shadow-lg);
  transition: transform .25s ease;
}
.rg-featured__card:hover { transform: translateY(-3px); }
.rg-featured__card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rg-brand-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.rg-brand-chip__logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff; color: var(--rg-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .7rem;
}
.rg-featured__card-body { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.rg-featured__card-title {
  flex: 1; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em;
}
.rg-featured__card-thumb { width: 140px; flex-shrink: 0; }
.rg-featured__card-thumb img {
  width: 100%; height: auto; border-radius: 10px; display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.rg-featured__card-foot { position: absolute; left: 28px; bottom: 24px; }

.rg-featured__meta { display: flex; flex-direction: column; gap: 14px; }
.rg-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rg-blue);
}
.rg-featured__title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; line-height: 1.2; margin: 0; color: var(--rg-navy); }
.rg-featured__title a { color: inherit; text-decoration: none; }
.rg-featured__title a:hover { color: var(--rg-blue); }
.rg-featured__excerpt { color: var(--rg-muted); font-size: 1rem; line-height: 1.6; margin: 0; }
.rg-featured__row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.rg-featured__date { color: var(--rg-muted); font-size: .9rem; }
.rg-readmore { color: var(--rg-blue); font-weight: 600; text-decoration: none; }
.rg-readmore:hover { text-decoration: underline; }

/* PILLS */
.rg-pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.6;
}
.rg-pill--jobsearch  { background: var(--rg-pill-jobsearch-bg);  color: var(--rg-pill-jobsearch-fg); }
.rg-pill--interviews { background: var(--rg-pill-interviews-bg); color: var(--rg-pill-interviews-fg); }
.rg-pill--default    { background: var(--rg-pill-default-bg);    color: var(--rg-pill-default-fg); }

/* GRID */
.rg-grid-section { padding: 32px 0 80px; }
.rg-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rg-card {
  background: #fff; border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rg-card:hover { transform: translateY(-4px); box-shadow: var(--rg-shadow-lg); }
.rg-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #EEF2FF; overflow: hidden; }
.rg-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-card__img--placeholder { background: linear-gradient(135deg, #DDE7FF, #B9CCFF); }
.rg-card__brand {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--rg-blue);
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .75rem; box-shadow: var(--rg-shadow);
}
.rg-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rg-card__title {
  font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--rg-navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rg-card__title a { color: inherit; text-decoration: none; }
.rg-card__title a:hover { color: var(--rg-blue); }
.rg-card__excerpt {
  color: var(--rg-muted); font-size: .925rem; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rg-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 8px;
}
.rg-card__date { color: var(--rg-blue); font-size: .85rem; font-weight: 500; }

/* SOCIAL */
.rg-social {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; z-index: 2;
}
.rg-featured__card-foot .rg-social { position: static; }
.rg-social__btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--rg-navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.rg-social__btn:hover { transform: scale(1.1); }

/* LOAD MORE */
.rg-loadmore-wrap { display: flex; justify-content: center; margin-top: 48px; }
.rg-loadmore {
  background: transparent; color: var(--rg-blue);
  border: 1.5px solid var(--rg-blue);
  padding: 12px 32px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: all .2s ease;
}
.rg-loadmore:hover { background: var(--rg-blue); color: #fff; }
.rg-loadmore[disabled] { opacity: .5; cursor: not-allowed; }

.rg-empty { text-align: center; padding: 48px 0; color: var(--rg-muted); grid-column: 1 / -1; }

/* CTA */
.rg-cta {
  position: relative; overflow: hidden;
  background: var(--rg-navy); color: #fff;
  padding: 80px 24px; text-align: center;
}
.rg-cta__streak {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(77,124,254,.18) 50%, transparent 60%);
  pointer-events: none;
}
.rg-cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.rg-cta__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
.rg-cta__sub  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0 0 32px; }
.rg-cta__form { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 999px; max-width: 520px; margin: 0 auto; }
.rg-cta__input { flex: 1; border: 0; outline: 0; padding: 12px 18px; font-size: 1rem; background: transparent; color: var(--rg-navy); border-radius: 999px; }
.rg-cta__btn {
  background: var(--rg-blue); color: #fff; border: 0; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: background .2s ease;
}
.rg-cta__btn:hover { background: var(--rg-blue-dark); }
.rg-cta__terms { color: rgba(255,255,255,.6); font-size: .8rem; margin: 16px 0 0; }
.rg-cta__terms a { color: rgba(255,255,255,.85); text-decoration: underline; }
.rg-cta__msg { margin-top: 12px; font-size: .9rem; color: #b6ffcd; min-height: 1.2em; }
.rg-cta__msg.is-error { color: #ffb1b1; }

/* SCROLL-TO-TOP */
.rg-totop {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--rg-blue); color: #fff; border: 0;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--rg-shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}
.rg-totop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* FADE-IN */
.rg-fade-in { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.rg-fade-in.is-in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rg-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .rg-hero { padding: 64px 20px 48px; }
  .rg-featured__grid { grid-template-columns: 1fr; gap: 28px; }
  .rg-featured__card { min-height: 280px; padding: 22px; }
  .rg-featured__card-body { flex-direction: column; align-items: flex-start; }
  .rg-featured__card-thumb { width: 100%; max-width: 220px; }
  .rg-grid { grid-template-columns: 1fr; gap: 20px; }
  .rg-cta__form { flex-direction: column; border-radius: 18px; padding: 12px; }
  .rg-cta__input { text-align: center; }
  .rg-cta__btn { width: 100%; }
}
