/* ==========================================================================
   GRAVITYVIEW MODULE — HERO LAYOUTS
   --------------------------------------------------------------------------
   File: forms-gravityview-hero.css

   Purpose:
   - Defines the hero layouts used across GravityView single-entry templates.
   - Provides structural, spacing, and visual rules for the top-of-page hero
     sections for each listing type (Services, FounderMatch, Jobs, Exithub).
   - Establishes consistent hero behavior across listing types while allowing
     each type to maintain its unique visual identity.
   - Handles hero-specific spacing, image wrappers, title/company blocks,
     CTAs, and responsive adjustments.

   Scope:
   - Applies ONLY to hero sections in GravityView single-entry templates.
   - Does NOT style list-view cards (belongs in forms-gravityview-list.css).
   - Does NOT style shared single-entry layout (belongs in
     forms-gravityview-single-shared.css).
   - Does NOT style component-level panels (belongs in
     forms-gravityview-panels.css).
   - Does NOT style modals (belongs in forms-gravityview-modals.css).

   Exclusions:
   - No Gravity Forms styling (belongs in forms-gravityforms.css).
   - No BuddyBoss form or registration styling (belongs in forms.css).
   - No directory or profile UI styling.

   Sections:
   13. Single Entry – Services Hero Layout
   15. Single Entry – FounderMatch Hero Layout
   17. Single Entry – Jobs Hero & Apply Button Layout
   18. Single Entry – Exithub Hero Layout
   ========================================================================== */
   
   
   /* ==========================================================================
   13. Single Entry – Services Hero Layout
   ========================================================================== */

/* Container and layout */
.services-hero.centered-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 20px;
}

/* Title */
.services-hero .listing-title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Image wrapper and image (square) */
.services-hero .hero-image-wrap {
  display: inline-block;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 0 18px;
  background: #f4f4f4;
}

.services-hero .gv-hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Profile link styling */
.services-hero .buddyboss-profile-link {
  display: inline-block;
  padding: 8px 14px;
  background: #0078d4;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.services-hero .buddyboss-profile-link:hover,
.services-hero .buddyboss-profile-link:focus {
  background: #005ea6;
}

/* Expertise list inside single-entry view */
.gv-field-1-custom .gv-grid-value .expertise-list {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
  margin-top: 8px !important;
  line-height: 1 !important;
  white-space: normal !important;
  font-size: 1rem !important;
}

/* Pill appearance */
.gv-field-1-custom .gv-grid-value .expertise-list .expertise-pill,
.gv-grid-col-1-1 .gv-field-1-custom .expertise-list .expertise-pill {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #e6f0ff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Expertise label row */
.expertise-row {
  display: block;
  margin-top: 8px;
}

.expertise-row > strong,
.expertise-row .expertise-label {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
  line-height: 1;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Expertise list wrapping */
.gv-field-1-custom .expertise-list,
.gv-grid-col-1-1 .gv-field-1-custom .expertise-list,
.expertise-row .expertise-list {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: center !important;
  white-space: normal !important;
  margin: 0;
}

/* Generic pill visuals */
.expertise-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* "+N" link */
.expertise-pill.expertise-more {
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.08);
  color: #0078d4;
  padding: 6px 10px;
  text-decoration: none;
}

/* Reviews */
.hero-reviews .gv-star-rating {
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-reviews {
  display: block;
  margin-top: 6px;
}

.hero-reviews .review-count,
.hero-reviews .no-reviews {
  margin-left: 8px;
  color: #6b7280;
  font-weight: 600;
  font-size: 13px;
}

/* Name flag */
.name-flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  line-height: 1;
  cursor: default;
}

.name-flag:focus {
  outline: 2px solid rgba(37,99,235,0.25);
  outline-offset: 2px;
  border-radius: 3px;
}

.name-flag[title] {
  position: relative;
}

/* Tooltip */
.name-flag[data-tooltip]:hover::after,
.name-flag[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px);
  background: #111827;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(2,6,23,0.2);
}

/* Author row */
.services-hero .author-name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  text-align: center;
  width: 100%;
}

.services-hero .gv-main-name {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  width: auto;
  text-align: center;
}

/* Flag inside hero */
.services-hero .name-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.services-hero .name-flag img.emoji {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Hero actions */
.services-hero .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-size: 14px;
  color: #6b6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-hero .hero-image-wrap { width: 220px; height: 220px; }
  .services-hero .listing-title { font-size: 22px; }
  .services-hero .gv-main-name { font-size: 18px; }
}

@media (max-width: 520px) {
  .services-hero .gv-main-name { margin-bottom: 6px; }
  .services-hero .name-flag { margin-left: 4px; }
}

/* ==========================================================================
   15. Single Entry – FounderMatch Hero Layout
   ========================================================================== */

/* Container and stack */
.foundermatch-hero.centered-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 20px;
  box-sizing: border-box;
}

/* Title */
.foundermatch-hero .listing-title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

/* Stack wrapper */
.foundermatch-hero .hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Image wrapper */
.foundermatch-hero .hero-image-wrap {
  display: inline-block;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f4;
}

.foundermatch-hero .gv-hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Author row */
.foundermatch-hero .author-name {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  text-align: center;
  width: 100%;
}

.foundermatch-hero .gv-main-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Flag */
.foundermatch-hero .name-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.foundermatch-hero .name-flag img.emoji {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Title/company */
.foundermatch-hero .hero-title-company {
  color: #6b7280;
  margin-top: 6px;
  text-align: center;
}

/* Badges */
.foundermatch-hero .hero-topline {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.foundermatch-hero .pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.9rem;
  color: #111827;
}

/* Website link */
.foundermatch-hero .hero-website {
  margin-top: 8px;
  text-align: center;
}

.foundermatch-hero .website-link {
  color: #0b66c3;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.foundermatch-hero .website-link:hover,
.foundermatch-hero .website-link:focus {
  text-decoration: underline;
  outline: none;
}

/* CTA */
.foundermatch-hero .hero-cta .hero-cta-actions,
.foundermatch-hero .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .foundermatch-hero .hero-image-wrap { width: 220px; height: 220px; }
  .foundermatch-hero .listing-title { font-size: 22px; }
  .foundermatch-hero .gv-main-name { font-size: 18px; }
}

@media (max-width: 520px) {
  .foundermatch-hero .gv-main-name { margin-bottom: 6px; }
  .foundermatch-hero .name-flag { margin-left: 4px; }
}

/* Adjusted spacing */
.foundermatch-hero.centered-hero {
  padding-top: 12px;
  padding-bottom: 12px;
}

.foundermatch-hero .hero-stack {
  gap: 4px;
}

.foundermatch-hero .listing-title {
  line-height: 1.02;
  margin-bottom: 6px;
}

.foundermatch-hero .author-name {
  margin-top: 4px;
  margin-bottom: 2px;
}

.foundermatch-hero .gv-main-name {
  line-height: 1.02;
}

.foundermatch-hero .hero-title-company {
  margin-top: 2px;
  margin-bottom: 4px;
  line-height: 1.08;
}

.foundermatch-hero .hero-topline { margin-top: 4px; }
.foundermatch-hero .hero-website { margin-top: 4px; }
.foundermatch-hero .hero-cta { margin-top: 6px; }

/* Unified pill / chip styles */
.fm-chip,
.pill,
.pill.industry-pill,
.pill.fm-pill,
.fm-panel-founders .fm-chip,
.fm-chips .fm-chip,
.foundermatch-hero .fm-chip {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #0b66c3 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  min-height: 22px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Slight density exception inside hero */
.foundermatch-hero .pill,
.foundermatch-hero .fm-chip {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}

/* Chips container */
.fm-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.fm-chip { display: inline-block; }

/* Inline display in meta rows */
.fm-meta-row .fm-meta-value > .pill,
.fm-meta-row .fm-meta-value > .fm-chip,
.fm-meta-row .fm-meta-value .pill,
.fm-meta-row .fm-meta-value .fm-chip {
  display: inline-block;
  margin: 0;
}

/* Meta row layout */
.fm-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0;
}

.fm-meta-row strong {
  min-width: 140px;
  color: #374151;
  font-weight: 600;
}

.fm-meta-value {
  color: #111827;
}

/* Responsive meta rows */
@media (max-width: 720px) {
  .fm-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .fm-meta-row strong {
    min-width: 0;
    margin-bottom: 6px;
  }
}

/* ==========================================================================
   17. Single Entry – Jobs Hero & Apply Button Layout
   ========================================================================== */

/* Chips inside meta rows */
.fm-meta-row .fm-chips {
  display: inline-flex !important;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  vertical-align: middle;
  margin-top: 0;
}

/* Availability chips */
.fm-chips.fm-availability .fm-chip {
  display: inline-block;
}

/* Multi-line alignment */
.fm-meta-row {
  align-items: flex-start;
  gap: 12px;
}

.fm-meta-row .fm-meta-value .fm-chips {
  margin-top: 2px;
}

/* Hidden-by-type */
.hero-website.gv-hidden-by-type {
  display: none !important;
}

/* Responsive meta rows */
@media (max-width:720px) {
  .fm-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .fm-meta-row strong {
    min-width: 0;
    margin-bottom: 6px;
  }
}

/* Jobs: Apply button */
.job-details-panel .apply-wrapper {
  display: inline-block;
}

.job-details-panel .apply-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-color, #0b76ff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.job-details-panel .apply-pill:focus {
  outline: 3px solid rgba(11,118,255,0.2);
  outline-offset: 2px;
}

.job-details-panel .fm-meta-row strong {
  min-width: 160px;
}

/* Center apply button */
.job-apply-row {
  display: block;
  margin: 0;
  padding: 0;
}

.job-apply-row .fm-meta-value {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

/* Tighten layout */
.jobs-hero .hero-meta .hero-cta {
  margin-top: 8px;
}

.apply-wrapper-centered {
  width: 100%;
  display: flex;
  justify-content: center;
}

.apply-link {
  white-space: nowrap;
}

/* Responsive tweak */
@media (max-width: 540px) {
  .job-apply-row .fm-meta-value {
    padding-top: 8px;
  }
}

/* ==========================================================================
   16. Hero – Spacing & Rhythm Layer
   ========================================================================== */

/* Hero spacing */
.foundermatch-hero.centered-hero,
.services-hero.centered-hero {
  margin-bottom: 6px !important;
  padding-bottom: 8px !important;
}

/* Tighten row after hero */
.gv-grid-row:has(.foundermatch-hero.centered-hero) + .gv-grid-row,
.gv-grid-row:has(.services-hero.centered-hero) + .gv-grid-row {
  margin-top: 6px !important;
  padding-top: 0 !important;
}

/* Mobile hero spacing */
@media (max-width:560px) {
  .foundermatch-hero.centered-hero,
  .services-hero.centered-hero { margin-bottom: 10px !important; }

  .gv-grid-row:has(.foundermatch-hero.centered-hero) + .gv-grid-row,
  .gv-grid-row:has(.services-hero.centered-hero) + .gv-grid-row {
    margin-top: 10px !important;
  }

  .gv-grid-row:has(.fm-bio-panel) + .gv-grid-row { margin-top: 18px !important; }
  .gv-grid-row:has(.fm-bio-panel) + .gv-grid-row .listing-description-block.shaded { margin-top: 18px !important; }
  .gv-grid-row:has(.expertise-row) + .gv-grid-row .listing-description-block.shaded { margin-top: 18px !important; }
}

/* ==========================================================================
   18. Single Entry – Exithub Hero Layout
   ========================================================================== */

/* Exithub hero */
.exithub-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
}

.exithub-hero .hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-image-wrap {
  width: 260px;
  flex: 0 0 auto;
}

.gv-hero-profile-image {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.hero-flag-line {
  font-size: 34px;
  margin: 6px 0;
}

.author-line {
  color: #666;
  font-size: 14px;
  margin: 6px 0;
}

.hero-cta {
  margin-top: 12px;
}

.hero-cta .btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  background: #0b84ff;
  color: #fff;
  text-decoration: none;
}

.hero-note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.hero-flag-line .name-flag {
  min-width: 1.2em;
  display: inline-block;
}

.hero-flag-line .name-flag:empty {
  display: inline-block;
}

/* Centered variant */
.exithub-hero.centered-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 20px;
  box-sizing: border-box;
}

.exithub-hero .listing-title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}

.exithub-hero .hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Image sizing */
.exithub-hero .hero-image-wrap {
  display: inline-block;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f4f4;
}

.exithub-hero .gv-hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flag text */
.hero-flag-text {
  color: #6b6b6b;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-flag-line {
  text-align: center;
  display: block;
  margin: 6px 0;
}

.hero-flag-text {
  display: inline-block;
  text-align: center;
}

.hero-flag-text:empty {
  display: none;
}

/* Responsive flag text */
@media (min-width: 601px) {
  .hero-flag-text {
    font-size: 0.95rem;
    opacity: 0.9;
  }
}

@media (max-width: 600px) {
  .hero-flag-text {
    font-size: 0.95rem;
    display: inline-block;
  }
}

