<?php global $post;
$url = get_field('link'); ?>
<div class="col-md-3">
    <div class="card mt-3 current-admission"
         style="height: 230px; background-color: #1d1f37; position:relative">
        <h3 class="fs-5 text-white font-work-sans text-center current-admission-program"><span
                    class="fw-bold fs-4 font-work-sans"><?php the_title(); ?></span></h3>
    </div>
    <div class="d-flex justify-content-center current-admission">
        <div class="d-block p-3 text-white text-center position-absolute admission_details rounded"
             style="background-color: #1d7099">
            <?php
            if ($url != '') {
                ?>
                <a href="<?= $url ?>"
                   class="card-title my-2 text-uppercase">
                    Apply Now
                </a>
            <?php } ?>

        </div>
    </div>
</div>