<?php
	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	$short_description = get_post_meta( get_the_ID(), 'short_description', true );
	$categories        = get_the_category();
?>
<header class="g-489e6681" data-section-variant="outlined" data-component-handler="39176714208e" data-test-locator="b73fee" data-block-group="c972d0df1d1a">
	<div class="g-63e2c1ff" id="elem-2c64bef61b9b0d8c">
		<?php get_template_part( 'templates/breadcrumbs' ); ?>
		<div class="g-3c4b8b7b" data-bs-slide-to="38a9bd79ab" data-component-status="deleted" data-block-variant="contained" data-component-category="engagement">
			<?php if ( $categories ) : ?>
				<div class="g-dd478101 g-972e0058" id="elem-603813e6df87f5e9">
					<?php foreach ( $categories as $key => $category ) : ?>
						<?php $icon = get_term_meta( $category->term_id, 'icon', true ); ?>
						<?php if ( $key !== 0 ) : ?>
							<span>/</span>
						<?php endif; ?>
						<a
							href="<?php echo esc_url( get_tag_link( $category->term_id ) ); ?>"
							class="g-1c51d6e8"
						>
							<span class="g-82ab6c54">
								<?php echo esc_html( $category->name ); ?>
							</span>
						</a>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>
			<div class="g-269b87c2 g-972e0058 g-38d13b35" data-analytics-disabled="a498f36aedf" data-analytics-dimension="b9999d">
				<time datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>">
					<?php echo esc_html( get_the_date() ); ?>
				</time>
			</div>
		</div>
		<div class="g-ce30e533" id="elem-06614d28703d563a">
			<h1 class="g-79fd8c5d g-4d7b4f87" data-section-content="c0ba3a34d" data-test-source="67c0b0d9f342" data-bs-qa="b2aca360405" data-section-state="success">
				<?php the_title(); ?>
			</h1>
			<?php if ( ! empty( $short_description ) ) : ?>
				<div class="g-a0e02ee6 g-38d13b35 g-a2b71d43" id="elem-85585e9df828c9a0">
					<?php echo esc_html( $short_description ); ?>
				</div>
			<?php endif; ?>
			<?php if ( has_post_thumbnail() ) : ?>
				<div class="g-d5bc09a7" data-mui-loading="77b5500eb6c" data-bs-track="4b160bcc7" data-block-config="21d70b0165" data-analytics-wrap="b8543ebae">
					<figure class="g-1252e9a0 g-3eaa23da g-3f73e398 g-aa2906c8">
						<?php the_post_thumbnail( 'large', [ 'loading' => 'eager' ] ); ?>
					</figure>
				</div>
			<?php endif; ?>
		</div>
	</div>
</header>