/* =============================================
   EXTRAS — Niche Cards, Blog Preview, Referral Block
   ============================================= */

/* === NICHE CARDS === */
.niches {
  padding: 80px 32px;
  background: var(--wh);
  border-bottom: 1px solid rgba(200, 164, 78, .06);
  position: relative;
  overflow: hidden;
}
.niches::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  border: 1.5px solid rgba(200, 164, 78, .07);
  border-radius: 50%;
  pointer-events: none;
}
.niches-in { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1 }

.niches h2 { font-family: var(--fd); font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 8px }
.niches h2 em { color: var(--em); font-style: italic }
.niches-desc { font-size: 15px; color: var(--mu); max-width: 500px; line-height: 1.6 }

.niches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px }
.niche-card {
  border-radius: 16px;
  padding: 32px 28px;
  border: 1.5px solid transparent;
  transition: all .35s;
  position: relative;
  overflow: hidden;
}
.niche-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  transition: opacity .3s;
}
.niche-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .07) }
.niche-card:hover::before { opacity: 1 }

.niche-nursing { background: linear-gradient(135deg, rgba(13, 107, 78, .04), rgba(13, 107, 78, .01)); border-color: rgba(13, 107, 78, .1) }
.niche-nursing::before { background: linear-gradient(90deg, var(--em), var(--em-l)) }
.niche-business { background: linear-gradient(135deg, rgba(200, 164, 78, .06), rgba(200, 164, 78, .02)); border-color: rgba(200, 164, 78, .15) }
.niche-business::before { background: linear-gradient(90deg, var(--gold), var(--gold-l)) }
.niche-law { background: linear-gradient(135deg, rgba(59, 130, 246, .04), rgba(59, 130, 246, .01)); border-color: rgba(59, 130, 246, .1) }
.niche-law::before { background: linear-gradient(90deg, #3b82f6, #60a5fa) }

.niche-icon { font-size: 36px; margin-bottom: 14px; display: block }
.niche-title { font-family: var(--fd); font-size: 22px; color: var(--ch); margin-bottom: 6px }
.niche-desc { font-size: 13px; color: var(--mu); line-height: 1.6; margin-bottom: 8px }
.niche-stats { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap }
.niche-stat { font-size: 11px; color: var(--sl); font-weight: 600; display: flex; align-items: center; gap: 4px }
.niche-stat svg { width: 12px; height: 12px; color: var(--em) }

.niche-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  color: var(--wh);
}
.niche-nursing .niche-cta { background: var(--em) }
.niche-nursing .niche-cta:hover { background: var(--em-d) }
.niche-business .niche-cta { background: var(--gold); color: var(--ch) }
.niche-business .niche-cta:hover { background: var(--gold-l) }
.niche-law .niche-cta { background: #3b82f6 }
.niche-law .niche-cta:hover { background: #2563eb }


/* === BLOG PREVIEW === */
.blog-prev {
  padding: 80px 32px;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(13, 107, 78, .035) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(13, 107, 78, .03) 0%, transparent 45%);
}
.blog-prev::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-top: 2px solid rgba(13, 107, 78, .08);
  border-left: 2px solid rgba(13, 107, 78, .08);
  border-radius: 10px 0 0 0;
  pointer-events: none;
}
.blog-prev::after {
  content: '';
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-bottom: 2px solid rgba(13, 107, 78, .08);
  border-right: 2px solid rgba(13, 107, 78, .08);
  border-radius: 0 0 8px 0;
  pointer-events: none;
}

/* Decorative green wavy patterns */
.blog-wave {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.blog-wave-1 {
  top: 15%;
  left: -5%;
  width: 45%;
  opacity: .7;
}
.blog-wave-2 {
  top: -15%;
  right: -8%;
  width: 280px;
  height: 280px;
  opacity: .6;
}
.blog-wave-3 {
  bottom: -10%;
  right: 5%;
  width: 140px;
  height: 350px;
  opacity: .6;
}
.blog-wave-4 {
  bottom: 10%;
  left: 8%;
  width: 180px;
  height: 180px;
  opacity: .7;
}
.blog-in { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1 }

.blog-prev h2 { font-family: var(--fd); font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 8px }
.blog-desc { font-size: 15px; color: var(--mu); max-width: 480px; line-height: 1.6 }

.blog-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 36px }
.blog-card {
  background: var(--wh);
  border: 1px solid rgba(200, 164, 78, .08);
  border-radius: 16px;
  overflow: hidden;
  transition: all .35s;
  display: flex;
  flex-direction: row;
}
.blog-card:hover { transform: translateX(6px); box-shadow: 0 8px 28px rgba(0, 0, 0, .06) }

.blog-thumb {
  width: 180px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-thumb-1 { background: linear-gradient(160deg, rgba(220, 53, 69, .1), rgba(200, 164, 78, .15)) }
.blog-thumb-2 { background: linear-gradient(160deg, rgba(13, 107, 78, .1), rgba(59, 130, 246, .1)) }
.blog-thumb-3 { background: linear-gradient(160deg, rgba(200, 164, 78, .12), rgba(13, 107, 78, .08)) }
.blog-thumb-icon { font-size: 42px; opacity: .65 }
.blog-thumb-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--em);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.blog-body { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0 }
.blog-title { font-family: var(--fd); font-size: 18px; color: var(--ch); margin-bottom: 6px; line-height: 1.3 }
.blog-excerpt { font-size: 13px; color: var(--mu); line-height: 1.6; margin-bottom: 14px }
.blog-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--em);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.blog-link:hover { gap: 8px }


/* === REFERRAL BLOCK === */
.referral { padding: 48px 32px; background: var(--wh); border-bottom: 1px solid rgba(200, 164, 78, .06) }
.referral-in {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gold-p), rgba(200, 164, 78, .08));
  border: 1.5px solid rgba(200, 164, 78, .15);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.referral-in::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(200, 164, 78, .12);
  border-radius: 50%;
  pointer-events: none;
}
.referral-content { position: relative; z-index: 1 }
.referral-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wh);
  border: 1px solid rgba(200, 164, 78, .15);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.referral-title { font-family: var(--fd); font-size: 22px; color: var(--ch); margin-bottom: 4px }
.referral-desc { font-size: 13px; color: var(--mu); line-height: 1.5 }
.referral-cta {
  background: var(--gold);
  color: var(--ch);
  padding: 12px 28px;
  border-radius: 9px;
  border: none;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.referral-cta:hover { background: var(--gold-l); transform: translateY(-1px) }
