    .program-card {
        position: relative; 
        border: .5px solid #f2f2f2;
        border-radius: 16px; 
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: visible;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .program-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .program-img-wrapper {
        position: relative; 
        width: 100%;
        padding-top: 80%; 
        border-radius: 16px 16px 0 0;
        background-color: #ffffff;
        overflow: hidden;
    }

    .program-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: contain; 
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.4s ease;
        padding: 15px; 
        background-origin: content-box; 
    }  
  
    .floating-options {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }

    .btn-floating-toggle {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: .5px solid #eeeeee;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.2s;
        cursor: pointer;
    }

    .dropdown-menu-custom {
        border-radius: 10px;
        border: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        padding: 0.5rem;
        min-width: 180px;
    }
    
    .dropdown-item {
        border-radius: 6px;
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: normal; /* ป้องกันข้อความยาวเกินปุ่ม */
    }

    .card-body-program {
        padding: 1.25rem;
        text-align: center;
        flex-grow: 1; 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .program-title {
        font-size: 1.1rem;
        font-weight: 400;
        color: #333;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .btn-open-program {
        background-color: #f8f9fa;
        color: #6c757d;
        border-radius: 8px;
        padding: 10px;
        width: 100%;
        font-weight: 400;
        text-decoration: none;
        display: block;
        transition: all 0.3s ease;
    }

    .btn-open-program:hover {
        background-color: #921a21;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(146, 26, 33, 0.3);
    }
    
    @media (max-width: 576px) {
        .card-body-program { padding: 0.8rem; }
        .program-title { font-size: 0.9rem; }
    }
