<?php
/**
 *  For Displaying Single Career page 
 *
 *
 * @package Felicityhealth
 * @since Felicityhealth 1.0
 */
?>
<?php  get_header(); ?>
<style>
    .global-hero {
        background: #ede1fe;
        border-bottom: 1px solid #e6e6e6;
        margin: 0;
        padding-bottom: 65px;
        padding-top: 100px;
        position: relative;
        text-align: center;
    }
    .global-hero .meta {
        align-content: center;
        align-items: center;
        display: flex;
        justify-content: center;
        margin-bottom: 14px;
    }
    .global-hero .meta .career-label {
        background-color: #4e3177;
        color: #fff;
        display: inline-block;
        font-family: inherit;
        font-size: 13px;
        letter-spacing: .05em;
        line-height: 1.45em;
        margin-right: 20px;
        padding: 5px 11px;
        position: relative;
        text-transform: uppercase;
    }
    .global-hero .meta .date {
        color: #949494;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .05em;
        line-height: 1.45em;
        text-transform: uppercase;
    }
    .global-hero h1 {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 40px;
        letter-spacing: .02em;
        line-height: 1.2em;
        margin: 0 0 1em;
    }

    .global-hero .page-title {
        margin-bottom: 0;
    }

    .global-hero .meta-lower {
        margin-top: 40px;
    }

    .global-hero .meta-lower .taxonomy-flex {
        align-content: center;
        align-items: center;
        display: flex;
        justify-content: center;
    }
    .global-hero .meta-lower .taxonomy-flex>div .label {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 13px;
        line-height: 1.45em;
        margin-right: 9px;
    }
    .global-hero .meta-lower .taxonomy-flex>div .text {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .05em;
        line-height: 1.45em;
        text-transform: uppercase;
    }
    .global-hero .meta-lower .taxonomy-flex>div:not(:first-child):before {
        background-color: #4e4e4e;
        content: "";
        display: inline-block;
        height: 30px;
        margin: 0 15px 0 20px;
        vertical-align: middle;
        width: 1px;
    }

    @media (min-width: 768px){
        .center-md {
            justify-content: center;
            text-align: center;
        }
        .global-hero h1 {
            font-size: 54px;
        }
        .global-hero .page-title {
            font-size: 50px;
        }
    }

    @media (min-width: 1170px){
        .global-hero h1 {
            font-size: 60px;
        }
    }


</style>
<section class="global-hero">
    <div class="container-fluid">
        <div class="meta">
            <a class="career-label label color-orange" href="<?php echo site_url('/careers/') ?>"><span class="text"><?php echo __( 'Careers', 'felicityhealth' );?></span></a>
            <span class="date"><time datetime="<?php echo get_the_date('F j, Y'); ?>" title="<?php echo get_the_date('F j, Y'); ?>"><?php echo get_the_date('F j, Y'); ?></time></span>
        </div>
        <div class="row center-md">
            <div class="col-md-10">
                <h1 class="page-title"><?php echo the_title() ?></h1>
            </div>
        </div>
        <div class="meta-lower">
            <div class="taxonomy-flex">
                <div class="department-wrapper">
                    <span class="label"><?php echo __( 'Department', 'felicityhealth' );?></span>
                    <span class="text"> <?= the_field('department') ?></span>
                </div>
                <div class="location-wrapper">
                    <span class="label"><?php echo __( 'Location', 'felicityhealth' );?></span>
                    <span class="text"><?= the_field('location') ?></span>
                </div>
            </div>
        </div>
    </div>
</section>

<style>
   .below-hero {
        padding-bottom: 50px;
        padding-top: 60px;
    }
    .below-hero {
        position: relative;
    }
    .share-wrapper {
        background-color: #f9f9f9;
        color: #949494;
        height: 300px;
        position: absolute;
        right: 0;
        text-align: center;
        top: 0;
        width: 50px;
    }
    .share-wrapper .share-label {
        color: #949494;
        font-family: inherit;
        font-size: 13px;
        line-height: 18px;
        margin: 40px 2px 33px 7px;
        transform: rotate(90deg);
        white-space: nowrap;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .share-wrapper .share-links-wrapper .share-link {
        color: #949494;
        display: block;
        font-size: 22px;
        margin-bottom: 15px;
        margin-left: 4px;
        transition: .3s ease-out;
    }
    .below-hero .body-wrapper .content-styled {
        margin-bottom: 100px;
        text-align: left;
    }

    .below-hero  h4 {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 27px;
        line-height: 1.25em;
        margin: 0 0 1em;
    }

    .below-hero .body-wrapper .content-styled p {
        font-size: 17px;
        letter-spacing: 0;
        line-height: 1.6em;
        margin: 0 0 30px;
    }

    .below-hero .body-wrapper .content-styled ol, .below-hero .body-wrapper .content-styled ul {
        padding: 0 0 30px;
    }

    .below-hero .body-wrapper .content-styled ol, .below-hero .body-wrapper .content-styled ul {
        counter-reset: item;
    }

    .below-hero .body-wrapper .content-styled li {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 17px;
        letter-spacing: 0;
        line-height: 1.6em;
        margin: 0 0 20px;
    }

    .below-hero .body-wrapper .content-styled ol li, .below-hero .body-wrapper .content-styled ul li {
        padding-left: 28px;
        position: relative;
    }

    .below-hero .body-wrapper .content-styled  ol li:before, .below-hero .body-wrapper .content-styled  ul li:before {
        color: #7e57c2;
        content: "•";
        left: 0;
        position: absolute;
    }

    .below-hero .body-wrapper .content-styled  h6 {
        color: #4e4e4e;
        font-family: inherit;
        font-size: 13px;
        letter-spacing: .08em;
        line-height: 1.45em;
        margin: 0 0 1em;
        text-transform: uppercase;
    }

    @media (min-width: 768px){
        .center-md {
            justify-content: center;
            text-align: center;
        }
        .below-hero  h4 {
            font-size: 29px;
        }
        .below-hero .body-wrapper .content-styled p {
            font-size: 18px;
        }
        .below-hero .body-wrapper .content-styled  li {
            font-size: 18px;
        }
    }

    @media (min-width: 1170px){
        .below-hero h4 {
            font-size: 36px;
        }
        .below-hero .body-wrapper .content-styled p {
            font-size: 20px;
        }
        .below-hero .body-wrapper .content-styled li {
            font-size: 20px;
        }
    }

</style>



<div class="below-hero">
    <div class="share-wrapper">
        <h6 class="share-label"><?php echo __( 'Share', 'felicityhealth' );?></h6>
        <div class="share-links-wrapper">
            <a class="share-link share-twitter" href="#" target="_blank" rel="noopener">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-twitter" viewBox="0 0 16 16">
                    <path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"/>
                </svg>
            </a>
            <a class="share-link share-facebook" href="#" target="_blank" rel="noopener">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-facebook" viewBox="0 0 16 16">
                    <path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"/>
                </svg>
            </a>
            <a  class="share-link share-linkedin" href="#"  target="_blank" rel="noopener">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-linkedin" viewBox="0 0 16 16">
                    <path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"/>
                </svg>
            </a>
            <a class="share-link share-email" href="mailto:?Subject=Reinvestment&amp;Body=https://www.reinvestment.com/career/managing-director-strategic-communications/" target="_blank" rel="noopener">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-envelope" viewBox="0 0 16 16">
                    <path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z"/>
                </svg>
            </a>
        </div>
    </div>
    <div class="container body-wrapper">
        <div class="row center-md">
            <div class="col-md-7">
                <div class="content-styled">
                    <?php  if ( have_posts() ) : ?>
                        <?php while ( have_posts() )  : the_post(); ?>
                            <?php the_content(); ?>
                        <?php endwhile; ?>
                    <?php else: ?>
                        <p><?php echo __( 'No Content for this Job yet, pleasse check back later.', 'felicityhealth' );?></p>
                    <?php endif; ?>
                </div>
                <div class="cta-wrapper">
                    <a class="button_button__Yaq9u button_large__xOVkf button_primary__aMXk2" href="<?php echo site_url('/careers/apply/') ?>"><?php echo __( 'Apply for Position', 'felicityhealth' );?></a>
                </div>
            </div>
        </div>
    </div>
</div>



<?php get_template_part( 'template-parts/snippets/support' ); ?>
<?php get_footer(); ?>