/* Shared image and icon enhancements */
.image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.image-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color, rgba(0, 0, 0, 0.58));
  z-index: 0;
}

.image-section .container,
.image-section .hero-inner,
.image-section > * {
  position: relative;
  z-index: 1;
}

/* Hero text contrast fix — applies to all pages */
.hero-section,
.hero-section *,
.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section span,
.hero-section a:not(.btn-primary):not(.btn-secondary) {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-section .btn-primary {
  background: #ffffff !important;
  color: #1a3a1a !important;
  border: none !important;
}

.hero-section .btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.hero-section .hero-card,
.hero-section .hero-card * {
  color: var(--charcoal) !important;
  text-shadow: none !important;
}

.hero-section .hero-card h3 {
  color: var(--dark-green) !important;
}

.hero-section .hero-card .meta-value {
  color: var(--cal-poly-green) !important;
}

.hero-section .hero-card .meta-label,
.hero-section .hero-card .focus-list {
  color: var(--muted) !important;
}

.hero-section .text-highlight {
  background: var(--straw);
  color: var(--dark-green) !important;
  text-shadow: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hero-section--about {
  min-height: 380px !important;
}

.hero-image {
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-image .hero-content h1,
.hero-image .hero-tagline,
.hero-image .eyebrow {
  color: #ffffff;
}

.hero-image .hero-subheadline,
.hero-image .hero-intro {
  color: rgba(255, 255, 255, 0.85);
}

.hero-image .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-image .btn-secondary:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero-image {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.page-hero-image--medium {
  min-height: 400px;
}

.page-hero-image--compact {
  min-height: 320px;
}

.page-hero-image--center {
  text-align: center;
}

.page-hero-image .eyebrow,
.page-hero-image h1,
.page-hero-image .lead {
  color: #ffffff;
}

.page-hero-image .lead {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero--tint {
  background: #f0f7f0;
}

.page-hero--tint .eyebrow,
.page-hero--tint h1,
.page-hero--tint .lead {
  color: var(--dark-green);
}

.callout-image {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 5rem 2.5rem;
  border-color: rgba(255, 255, 255, 0.15);
}

.callout-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color, rgba(34, 85, 34, 0.7));
}

.callout-image > * {
  position: relative;
  z-index: 1;
}

.icon-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-heading h2,
.icon-heading h3 {
  margin: 0;
}

.icon-inline svg {
  width: 28px;
  height: 28px;
  color: #4caf50;
}

.icon-inline--sm svg {
  width: 24px;
  height: 24px;
}

.icon-inline--xs svg {
  width: 20px;
  height: 20px;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: #4caf50;
}

.value-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.value-title h3 {
  margin: 0;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: #4caf50;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #4caf50;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
}

.icon-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li svg {
  width: 20px;
  height: 20px;
  color: #4caf50;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.video-embed--interactive {
  position: relative;
}

.video-poster {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster:focus-visible {
  outline: 3px solid rgba(76, 175, 80, 0.8);
  outline-offset: 4px;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.video-poster:hover .play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-overlay svg {
  width: 64px;
  height: 64px;
  color: #ffffff;
}

.article-media--listing {
  height: 200px;
  aspect-ratio: 16 / 9;
}

.article-media--listing img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta-line--enhanced {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  color: #4caf50;
}

.category-badge {
  display: inline-block;
  background: #4caf50;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #757575;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.article-authorX {
  display: inline-flex;
  align-items: center;
}

.article-hero-img {
  max-height: 320px;
  height: 320px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.article-hero {
  max-height: 320px;
  overflow: hidden;
}

.article-meta-line--detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.article-content h2 {
  border-left: 4px solid #4caf50;
  padding-left: 14px;
  margin-top: 2em;
}

.callout-heading {
  background: #f0f7f0;
  border-left: 4px solid #4caf50;
  padding: 16px 20px;
  border-radius: 0 8px 0 0;
  margin: 16px 0 0;
}

.callout-heading + p {
  background: #f0f7f0;
  border-left: 4px solid #4caf50;
  padding: 0 20px 16px;
  margin: 0 0 16px;
  border-radius: 0 0 8px 0;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.author-bio {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}

.author-bio .author-avatar {
  width: 46px;
  height: 46px;
  font-size: 14px;
  margin-right: 0;
}

.author-bio .meta-item svg {
  width: 16px;
  height: 16px;
}

.founder-profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.founder-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.stat-card {
  background: #f0f7f0;
  border-top: 4px solid #4caf50;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.stat-number {
  font-size: 2em;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 0.25rem;
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  color: #4caf50;
  margin-bottom: 0.5rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.contact-item > span:not(.contact-icon) {
  line-height: 1.5;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: #4caf50;
  margin-top: 0;
}

.contact-icon--linkedin svg {
  color: var(--cal-poly-green);
}

.trust-strip {
  margin-top: 2rem;
  background: #f0f7f0;
  border-top: 3px solid #4caf50;
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  padding: 24px 32px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 12px 24px rgba(10, 33, 15, 0.08);
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95em;
  color: #2a2a2a;
}

.trust-strip-item svg,
.trust-strip-item [data-lucide] {
  color: #4caf50;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.years-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4caf50;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.1em;
}

.years-badge svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

@media (max-width: 640px) {
  .article-hero-img {
    height: 220px;
    max-height: 220px;
  }

  .article-hero {
    max-height: 220px;
  }
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .founder-profile {
    flex-direction: column;
  }
}
