body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* SECTION */
.program-section {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

/* 🔥 Add this */
@media (min-width: 1440px) {
    .program-section {
        max-width: 1300px;
    }
}

/* HEADING */
.heading-container {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 700;
}

.subtitle {
    font-size: 26px;
    color: #9D9C9C;
    font-style: italic;
}

/* ORANGE LINES */
.heading-wrapper {
    position: relative;
    display: inline-block;
}

.heading-wrapper::before,
.heading-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: #FE9927;
}

.heading-wrapper::before {
    right: 100%;
    margin-right: 12px;
}

.heading-wrapper::after {
    left: 100%;
    margin-left: 12px;
}

/* GRID */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

/* Tablet */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .program-grid {
        gap: 24px;
    }
}

/* CARD */
.program-card {
    position: relative;
    background: #F7F7F7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

/* Tablet */
@media (max-width: 1024px) {
    .program-card img {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .program-card {
        border-radius: 10px;
    }

    .program-card img {
        height: 140px;
    }

    .program-content {
        padding: 16px;
    }
}


.program-card:hover {
    transform: translateY(-6px);
}

/* IMAGE */
.program-card img {
    width: 100%;
    height: 150px;
    /* 🔥 slightly reduced */
    object-fit: cover;
}

/* CONTENT */
.program-content {
    padding: 22px 24px;
    /* 🔥 better side spacing */
}

.program-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* 🔥 FIX: aligns with title top */
}

.program-title {
    font-size: 30px;
    /* 🔥 bigger like design */
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    /* take remaining space */
    min-width: 0;
    /* 🔥 required for ellipsis */
    white-space: nowrap;
    /* single line */
    overflow: hidden;
    /* hide overflow */
    text-overflow: ellipsis;
    /* add "..." */
}

.enroll-btn {
    background: linear-gradient(145deg, #caffd0, #a7f5b0);
    color: #065f46;

    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: none;

    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;

    /* 🔥 3D Depth */
    box-shadow:
        0 4px 0 #6edc8c,
        /* bottom edge */
        0 8px 14px rgba(0, 0, 0, 0.15);
    /* soft shadow */

    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.enroll-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #6edc8c,
        0 10px 18px rgba(0, 0, 0, 0.18);
}

.enroll-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #6edc8c,
        0 4px 8px rgba(0, 0, 0, 0.12);
}

.ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.5s linear;
}



@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}


.program-desc {
    color: #A8A6A6;
    margin-top: 10px;
    font-size: 16px;
}

.program-dates {
    margin-top: 14px;
    color: #3A3939;
    display: flex;
    gap: 24px;
    /* 🔥 better spacing */
    font-size: 16px;
}

.heart {
    margin-top: 16px;
    color: #D24444;
    font-size: 22px;
}


/* Tablet */
@media (max-width: 1024px) {
    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 22px;
    }

    .program-title {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 18px;
    }

    .program-title {
        font-size: 22px;
    }

    .program-desc {
        font-size: 14px;
    }

    .program-dates {
        font-size: 14px;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {

    .heading-wrapper::before,
    .heading-wrapper::after {
        display: none;
    }
}

@media (max-width: 480px) {

    .program-title {
        font-size: 16px;
    }

    .enroll-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.like-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.heart {
    color: #D24444;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.heart:hover {
    transform: scale(1.2);
}

.like-count {
    font-size: 16px;
    color: #333;
}



.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

/* Live */
.status-badge.live {
    background: #d1fae5;
    color: #065f46;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 🔴 Red dot */
.status-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;

    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}


/* Upcoming */
.status-badge.upcoming {
    background: #fff3cd;
    color: #b45309;
}

.program-image {
    background: #eee;
}

.like-section {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Default (blurred/faded) */
.like-btn {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.25s ease;
}

/* On hover */
.like-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Active (liked) */
.like-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

.like-count {
    font-size: 14px;
}