<div class="hero-section" style="background-image: url('{{ asset('storage/'.$program->background_image) }}'); background-size: cover; background-position: center;">
    <div class="hero-overlay"></div>
    <div class="hero-content">
        <div class="hero-label">Hospitality</div>
        {{-- <div class="hero-label">{{ $program->sector }}</div> --}}
        <div class="hero-title">{{ $program->main_code }}</div>
        <div class="hero-subtitle">{{ $program->main_title }}</div>
    </div>
</div>
<div class="main-card">
        <p>
            {{ $program->description }}
    </p>
    <a href="{{ route('applynowInfo') }}" class="enroll-btn">ENROLL NOW</a>
</div>
<style>
    .hero-section {
    margin-top: 120px;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,66,109,0.32);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 64px 0 48px 7vw;
    color: #fff;

}
.hero-label {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 8px;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #3bb0ff;
    margin: 0 -9px -1px 0;
    letter-spacing: 1px;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 215px 0;
    color: #fff;
}
.apply-tab {
    position: absolute;
    top: 0;
    right: 0;
    background: #f7a600;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 32px 8px 8px 8px;
    writing-mode: vertical-rl;
    text-align: center;
    border-radius: 0 0 8px 8px;
    z-index: 3;
    height: 120px;
    cursor: pointer;
}
.main-card {
    background: #fff;
    max-width: 68vw;
    margin: -160px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 48px 56px 40px 56px;
    position: relative;
    z-index: 4;
}
.main-card p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 32px;
}
.enroll-btn {
    display: table;
    margin: 0 auto;
    padding: 12px 36px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    background: #fff;
    color: #2196f3;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}
.enroll-btn:hover {
    background: #2196f3;
    color: #fff;
}
  /* Enhanced responsive styles */
  @media (max-width: 1200px) {
        .hero-section {
            margin-top: 110px;
            min-height: 380px;
        }
        .hero-content {
            padding: 56px 0 40px 6vw;
        }
        .hero-label {
            font-size: 1rem;
            margin-bottom: 7px;
        }
        .hero-title {
            font-size: 2.5rem;
            margin: 0 -8px -1px 0;
        }
        .hero-subtitle {
            font-size: 1.8rem;
            margin: 0 0 190px 0;
        }
        .main-card {
            max-width: 75vw;
            margin: -140px auto 0 auto;
            padding: 40px 48px 32px 48px;
        }
        .main-card p {
            font-size: 1rem;
            margin-bottom: 28px;
        }
        .enroll-btn {
            padding: 11px 32px;
            font-size: 0.95rem;
        }
    }

    @media (max-width: 992px) {
        .hero-section {
            margin-top: 100px;
            min-height: 350px;
        }
        .hero-content {
            padding: 48px 0 36px 5vw;
        }
        .hero-label {
            font-size: 0.95rem;
            margin-bottom: 6px;
        }
        .hero-title {
            font-size: 2.2rem;
            margin: 0 -7px -1px 0;
        }
        .hero-subtitle {
            font-size: 1.6rem;
            margin: 0 0 170px 0;
        }
        .main-card {
            max-width: 80vw;
            margin: -120px auto 0 auto;
            padding: 36px 40px 28px 40px;
        }
        .main-card p {
            font-size: 0.95rem;
            margin-bottom: 24px;
        }
        .enroll-btn {
            padding: 10px 28px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 900px) {
        .hero-section {
            margin-top: 90px;
            min-height: 320px;
        }
        .hero-content {
            padding: 40px 0 28px 4vw;
        }
        .hero-label {
            font-size: 0.9rem;
            margin-bottom: 5px;
        }
        .hero-title {
            font-size: 2rem;
            margin: 0 -6px -1px 0;
        }
        .hero-subtitle {
            font-size: 1.4rem;
            margin: 0 0 150px 0;
        }
        .main-card {
            max-width: 96vw;
            padding: 32px 12px 28px 12px;
            margin: -100px auto 0 auto;
        }
        .main-card p {
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        .enroll-btn {
            padding: 9px 24px;
            font-size: 0.85rem;
        }
    }

    @media (max-width: 768px) {
        .hero-section {
            margin-top: 80px;
            min-height: 280px;
        }
        .hero-content {
            padding: 32px 0 24px 3vw;
        }
        .hero-label {
            font-size: 0.85rem;
            margin-bottom: 4px;
        }
        .hero-title {
            font-size: 1.8rem;
            margin: 0 -5px -1px 0;
        }
        .hero-subtitle {
            font-size: 1.2rem;
            margin: 0 0 120px 0;
        }
        .main-card {
            max-width: 98vw;
            padding: 28px 10px 24px 10px;
            margin: -80px auto 0 auto;
        }
        .main-card p {
            font-size: 0.85rem;
            margin-bottom: 18px;
        }
        .enroll-btn {
            padding: 8px 20px;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 600px) {
        .hero-section {
            margin-top: 70px;
            min-height: 240px;
        }
        .hero-content {
            padding: 24px 0 20px 2vw;
        }
        .hero-label {
            font-size: 0.8rem;
            margin-bottom: 3px;
        }
        .hero-title {
            font-size: 1.6rem;
            margin: 0 -4px -1px 0;
        }
        .hero-subtitle {
            font-size: 1.1rem;
            margin: 0 0 100px 0;
        }
        .main-card {
            max-width: 99vw;
            padding: 20px 8px 20px 8px;
            margin: -60px auto 0 auto;
        }
        .main-card p {
            font-size: 0.8rem;
            margin-bottom: 16px;
        }
        .enroll-btn {
            padding: 7px 18px;
            font-size: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        .hero-section {
            margin-top: 60px;
            min-height: 200px;
        }
        .hero-content {
            padding: 20px 0 16px 1vw;
        }
        .hero-label {
            font-size: 0.75rem;
            margin-bottom: 2px;
        }
        .hero-title {
            font-size: 1.4rem;
            margin: 0 -3px -1px 0;
        }
        .hero-subtitle {
            font-size: 1rem;
            margin: 0 0 80px 0;
        }
        .main-card {
            padding: 16px 6px 16px 6px;
            margin: -40px auto 0 auto;
        }
        .main-card p {
            font-size: 0.75rem;
            margin-bottom: 14px;
        }
        .enroll-btn {
            padding: 6px 16px;
            font-size: 0.7rem;
        }
    }

    @media (max-width: 400px) {
        .hero-section {
            margin-top: 50px;
            min-height: 180px;
        }
        .hero-content {
            padding: 16px 0 12px 1vw;
        }
        .hero-label {
            font-size: 0.7rem;
            margin-bottom: 1px;
        }
        .hero-title {
            font-size: 1.2rem;
            margin: 0 -2px -1px 0;
        }
        .hero-subtitle {
            font-size: 0.9rem;
            margin: 0 0 60px 0;
        }
        .main-card {
            padding: 12px 4px 12px 4px;
            margin: -30px auto 0 auto;
        }
        .main-card p {
            font-size: 0.7rem;
            margin-bottom: 12px;
        }
        .enroll-btn {
            padding: 5px 14px;
            font-size: 0.65rem;
        }
    }

    @media (max-width: 360px) {
        .hero-section {
            margin-top: 40px;
            min-height: 160px;
        }
        .hero-content {
            padding: 12px 0 8px 1vw;
        }
        .hero-label {
            font-size: 0.65rem;
        }
        .hero-title {
            font-size: 1.1rem;
            margin: 0 -1px -1px 0;
        }
        .hero-subtitle {
            font-size: 0.8rem;
            margin: 0 0 50px 0;
        }
        .main-card {
            padding: 10px 3px 10px 3px;
            margin: -25px auto 0 auto;
        }
        .main-card p {
            font-size: 0.65rem;
            margin-bottom: 10px;
        }
        .enroll-btn {
            padding: 4px 12px;
            font-size: 0.6rem;
        }
    }

</style>