/* ==========================================================================
   HAPYPRO PAGE-SPECIFIC LAYOUTS & RICH SECTIONS
   Palette: Teal (#00A8B5), Rich Charcoal (#1A1A1A), Crisp White (#FFFFFF),
   Soft Off-White (#F7FAFC), Warm Coral (#FF6B6B)
   ========================================================================== */

/* --------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background-color: var(--bg-primary);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid rgba(0, 168, 181, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  box-shadow: 0 0 8px var(--accent-coral);
  animation: ambientPulse 2s infinite;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #1A1A1A;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats-inline {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.stat-inline-item h4 {
  font-size: 1.75rem;
  color: #1A1A1A;
  font-weight: 800;
  font-family: var(--font-display);
}

.stat-inline-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Floating Visual Showcase on Hero Right */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-center-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 15px 35px rgba(0, 168, 181, 0.08);
  position: relative;
  z-index: 2;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-center-card.card-fade {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.candidate-ticker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.candidate-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.candidate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.candidate-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--primary);
}

.candidate-nav-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.candidate-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.match-score-pill {
  background: var(--accent-coral-light);
  color: var(--accent-coral-hover);
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.visual-candidate-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.visual-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
}

.visual-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  min-height: 56px;
}

.skill-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-xs);
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.floating-pill {
  position: absolute;
  padding: 0.85rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.floating-pill-1 {
  top: -25px;
  right: -20px;
}

.floating-pill-2 {
  bottom: -30px;
  left: -25px;
}

.pill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pill-icon.teal {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.pill-icon.coral {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

/* --------------------------------------------------
   2. CATEGORIES SECTION
   -------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 10px 25px rgba(0, 168, 181, 0.12);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  border: 1px solid rgba(0, 168, 181, 0.2);
  transition: all var(--transition-fast);
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0, 168, 181, 0.35);
}

/* --------------------------------------------------
   3. DUAL PORTAL / ROLE SHOWCASE BANNER
   -------------------------------------------------- */
.dual-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.portal-card {
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.portal-candidate {
  border: 2px solid rgba(0, 168, 181, 0.25);
}

.portal-recruiter {
  border: 2px solid rgba(255, 107, 107, 0.25);
}

.portal-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1A1A1A;
}

.portal-card p {
  margin-bottom: 2rem;
}

/* --------------------------------------------------
   4. DASHBOARD & APPLICATIONS TRACKER
   -------------------------------------------------- */
.dashboard-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #EDF2F7;
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.dash-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pipeline-column {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A1A1A;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.col-badge {
  background: #E2E8F0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.app-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------
   5. RESUME & PROFILE BUILDER PREVIEW
   -------------------------------------------------- */
.resume-preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.resume-score-gauge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-light);
  border: 1px solid rgba(0, 168, 181, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------
   6. FOOTER
   -------------------------------------------------- */
.site-footer {
  background: #EDF2F7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-col h5 {
  color: #1A1A1A;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-medium);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------
   HOW IT WORKS PROCESS SECTION
   -------------------------------------------------- */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.process-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 168, 181, 0.1);
  border-color: var(--primary);
}

.step-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: #CBD5E1;
  opacity: 0.6;
  line-height: 1;
}

.step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1A1A1A;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  width: fit-content;
}

/* --------------------------------------------------
   PLATFORM BENCHMARKS & IMPACT MATRIX
   -------------------------------------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.impact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.impact-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.impact-big-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.impact-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #1A1A1A;
}

.impact-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.impact-comparison-bar {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.bar-track {
  height: 7px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.impact-tags-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.impact-tags-wrap .skill-chip {
  justify-content: space-between;
  display: flex;
  background: var(--bg-primary);
  border-color: var(--border-subtle);
  font-size: 0.82rem;
}

/* --------------------------------------------------
   TESTIMONIALS & SUCCESS STORIES
   -------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
  color: var(--accent-amber);
  font-size: 1.15rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1A1A1A;
  font-style: italic;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-marquee-card {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  white-space: normal;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
}

.testimonial-marquee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 168, 181, 0.12);
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .testimonial-marquee-card {
    width: 310px;
    min-width: 310px;
    max-width: 310px;
    padding: 1.35rem 1.15rem;
  }
}

/* --------------------------------------------------
   RESPONSIVE ADJUSTMENTS ACROSS ALL VIEWPORTS
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-inline {
    justify-content: center;
  }
  .process-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 3.5rem;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-step-card {
    padding: 1.5rem 1.25rem !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dual-portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-card {
    padding: 1.75rem 1.25rem !important;
  }

  .portal-card div[style*="display: flex"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.6rem !important;
  }

  .portal-card .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile Swipeable Kanban Pipeline */
  .pipeline-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .pipeline-col {
    min-width: 280px !important;
    flex: 0 0 280px !important;
    scroll-snap-align: start;
  }

  /* Dashboard Tabs Horizontally Swipeable */
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .dashboard-tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md) !important;
    padding: 0.35rem !important;
    gap: 0.4rem !important;
    scrollbar-width: none;
  }

  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .dash-tab-btn {
    flex-shrink: 0 !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.84rem !important;
    white-space: nowrap !important;
  }

  /* Legal Sidebar Responsiveness */
  .legal-layout {
    grid-template-columns: 1fr !important;
  }
  .legal-sidebar {
    position: static !important;
    display: flex !important;
    overflow-x: auto !important;
    gap: 0.5rem;
    padding: 0.5rem 0 !important;
    white-space: nowrap;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
  }
  .legal-sidebar .legal-nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
  }

  /* Omni-search inputs touch ergonomics */
  .omni-search-container {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }
  .omni-search-container .search-field {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .omni-search-container input,
  .omni-search-container select {
    font-size: 16px !important;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  /* Hero Section Typography & Action Buttons */
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.6rem) !important;
    text-wrap: balance;
    word-break: break-word;
    margin-bottom: 1.15rem;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.6;
    margin-bottom: 1.75rem !important;
  }

  .hero-badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
    align-items: stretch !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Prevent horizontal overflow from floating pills on phones */
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  .visual-center-card {
    width: 100%;
    max-width: 100%;
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
  }

  .floating-pill {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 0.5rem;
    transform: none !important;
    animation: none !important;
  }

  .hero-stats-inline {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    padding-top: 1.25rem !important;
  }

  .stat-inline-item h4 {
    font-size: 1.35rem !important;
  }

  .stat-inline-item span {
    font-size: 0.75rem !important;
  }

  /* Grid Containment on Mobile */
  #job-list-container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Role Perspective Switcher */
  .role-btn.cat-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Drawer & Modal Mobile Full Width */
  .drawer-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .modal-dialog {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 0.65rem auto !important;
  }
}

@media (max-width: 480px) {
  .hero-stats-inline {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    text-align: center;
  }

  .stat-inline-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .stat-inline-item:last-child {
    border-bottom: none;
  }
}
